diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-06 13:04:33 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-07 10:19:12 +1000 |
| commit | df8fe7dd34244b972cd9c4f7935fe8d6e1ea50db (patch) | |
| tree | db5ea636ac9ca002cc631b35a06c6619119674a9 /compiler/rustc_data_structures | |
| parent | 9c9b568792ef20d8459c745345dd3e79b7c7fa8c (diff) | |
| download | rust-df8fe7dd34244b972cd9c4f7935fe8d6e1ea50db.tar.gz rust-df8fe7dd34244b972cd9c4f7935fe8d6e1ea50db.zip | |
Remove `macro_use` from `stable_hasher`.
Normal `use` items are nicer.
Diffstat (limited to 'compiler/rustc_data_structures')
| -rw-r--r-- | compiler/rustc_data_structures/src/fingerprint.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_data_structures/src/lib.rs | 7 | ||||
| -rw-r--r-- | compiler/rustc_data_structures/src/stable_hasher.rs | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/compiler/rustc_data_structures/src/fingerprint.rs b/compiler/rustc_data_structures/src/fingerprint.rs index 9995c08345c..1bee159489d 100644 --- a/compiler/rustc_data_structures/src/fingerprint.rs +++ b/compiler/rustc_data_structures/src/fingerprint.rs @@ -1,3 +1,4 @@ +use crate::stable_hasher::impl_stable_traits_for_trivial_type; use crate::stable_hasher::{Hash64, StableHasher, StableHasherResult}; use rustc_serialize::{Decodable, Decoder, Encodable, Encoder}; use std::hash::{Hash, Hasher}; diff --git a/compiler/rustc_data_structures/src/lib.rs b/compiler/rustc_data_structures/src/lib.rs index 8dd85b25e0e..6784c73b790 100644 --- a/compiler/rustc_data_structures/src/lib.rs +++ b/compiler/rustc_data_structures/src/lib.rs @@ -72,15 +72,14 @@ pub mod small_c_str; pub mod snapshot_map; pub mod svh; pub use ena::snapshot_vec; -pub mod memmap; -pub mod sorted_map; -#[macro_use] -pub mod stable_hasher; mod atomic_ref; pub mod fingerprint; pub mod marker; +pub mod memmap; pub mod profiling; pub mod sharded; +pub mod sorted_map; +pub mod stable_hasher; pub mod stack; pub mod sync; pub mod tiny_list; diff --git a/compiler/rustc_data_structures/src/stable_hasher.rs b/compiler/rustc_data_structures/src/stable_hasher.rs index 8418b4bbd47..b5bdf2e1790 100644 --- a/compiler/rustc_data_structures/src/stable_hasher.rs +++ b/compiler/rustc_data_structures/src/stable_hasher.rs @@ -296,6 +296,8 @@ macro_rules! impl_stable_traits_for_trivial_type { }; } +pub(crate) use impl_stable_traits_for_trivial_type; + impl_stable_traits_for_trivial_type!(i8); impl_stable_traits_for_trivial_type!(i16); impl_stable_traits_for_trivial_type!(i32); |
