Skip to content

Commit df8fe7d

Browse files
committed
Remove macro_use from stable_hasher.
Normal `use` items are nicer.
1 parent 9c9b568 commit df8fe7d

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

compiler/rustc_data_structures/src/fingerprint.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use crate::stable_hasher::impl_stable_traits_for_trivial_type;
12
use crate::stable_hasher::{Hash64, StableHasher, StableHasherResult};
23
use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};
34
use std::hash::{Hash, Hasher};

compiler/rustc_data_structures/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,14 @@ pub mod small_c_str;
7272
pub mod snapshot_map;
7373
pub mod svh;
7474
pub use ena::snapshot_vec;
75-
pub mod memmap;
76-
pub mod sorted_map;
77-
#[macro_use]
78-
pub mod stable_hasher;
7975
mod atomic_ref;
8076
pub mod fingerprint;
8177
pub mod marker;
78+
pub mod memmap;
8279
pub mod profiling;
8380
pub mod sharded;
81+
pub mod sorted_map;
82+
pub mod stable_hasher;
8483
pub mod stack;
8584
pub mod sync;
8685
pub mod tiny_list;

compiler/rustc_data_structures/src/stable_hasher.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ macro_rules! impl_stable_traits_for_trivial_type {
296296
};
297297
}
298298

299+
pub(crate) use impl_stable_traits_for_trivial_type;
300+
299301
impl_stable_traits_for_trivial_type!(i8);
300302
impl_stable_traits_for_trivial_type!(i16);
301303
impl_stable_traits_for_trivial_type!(i32);

0 commit comments

Comments
 (0)