diff --git a/compiler/rustc_data_structures/src/sync.rs b/compiler/rustc_data_structures/src/sync.rs index 31323c21df009..13101384039b3 100644 --- a/compiler/rustc_data_structures/src/sync.rs +++ b/compiler/rustc_data_structures/src/sync.rs @@ -166,8 +166,6 @@ cfg_if! { pub type MetadataRef = OwningRef, [u8]>; - pub use std::rc::Rc as Lrc; - pub use std::rc::Weak as Weak; pub use std::cell::Ref as ReadGuard; pub use std::cell::Ref as MappedReadGuard; pub use std::cell::RefMut as WriteGuard; @@ -264,9 +262,6 @@ cfg_if! { pub use std::sync::atomic::{AtomicBool, AtomicUsize, AtomicU32, AtomicU64}; - pub use std::sync::Arc as Lrc; - pub use std::sync::Weak as Weak; - pub type MTRef<'a, T> = &'a T; #[derive(Debug, Default)] @@ -364,6 +359,8 @@ cfg_if! { } } +pub use std::sync::Arc as Lrc; + pub fn assert_sync() {} pub fn assert_send() {} pub fn assert_send_val(_t: &T) {}