mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
Remove macro_use
from stable_hasher
.
Normal `use` items are nicer.
This commit is contained in:
parent
9c9b568792
commit
df8fe7dd34
@ -1,3 +1,4 @@
|
|||||||
|
use crate::stable_hasher::impl_stable_traits_for_trivial_type;
|
||||||
use crate::stable_hasher::{Hash64, StableHasher, StableHasherResult};
|
use crate::stable_hasher::{Hash64, StableHasher, StableHasherResult};
|
||||||
use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};
|
use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};
|
||||||
use std::hash::{Hash, Hasher};
|
use std::hash::{Hash, Hasher};
|
||||||
|
@ -72,15 +72,14 @@ pub mod small_c_str;
|
|||||||
pub mod snapshot_map;
|
pub mod snapshot_map;
|
||||||
pub mod svh;
|
pub mod svh;
|
||||||
pub use ena::snapshot_vec;
|
pub use ena::snapshot_vec;
|
||||||
pub mod memmap;
|
|
||||||
pub mod sorted_map;
|
|
||||||
#[macro_use]
|
|
||||||
pub mod stable_hasher;
|
|
||||||
mod atomic_ref;
|
mod atomic_ref;
|
||||||
pub mod fingerprint;
|
pub mod fingerprint;
|
||||||
pub mod marker;
|
pub mod marker;
|
||||||
|
pub mod memmap;
|
||||||
pub mod profiling;
|
pub mod profiling;
|
||||||
pub mod sharded;
|
pub mod sharded;
|
||||||
|
pub mod sorted_map;
|
||||||
|
pub mod stable_hasher;
|
||||||
pub mod stack;
|
pub mod stack;
|
||||||
pub mod sync;
|
pub mod sync;
|
||||||
pub mod tiny_list;
|
pub mod tiny_list;
|
||||||
|
@ -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!(i8);
|
||||||
impl_stable_traits_for_trivial_type!(i16);
|
impl_stable_traits_for_trivial_type!(i16);
|
||||||
impl_stable_traits_for_trivial_type!(i32);
|
impl_stable_traits_for_trivial_type!(i32);
|
||||||
|
Loading…
Reference in New Issue
Block a user