Skip to content

Commit 720f717

Browse files
committed
use Arc as Lrc
1 parent fc04774 commit 720f717

File tree

1 file changed

+2
-5
lines changed
  • compiler/rustc_data_structures/src

1 file changed

+2
-5
lines changed

compiler/rustc_data_structures/src/sync.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,6 @@ cfg_if! {
246246

247247
pub type MetadataRef = OwnedSlice;
248248

249-
pub use std::rc::Rc as Lrc;
250-
pub use std::rc::Weak as Weak;
251249
pub use std::cell::Ref as ReadGuard;
252250
pub use std::cell::Ref as MappedReadGuard;
253251
pub use std::cell::RefMut as WriteGuard;
@@ -312,9 +310,6 @@ cfg_if! {
312310

313311
pub use std::sync::atomic::{AtomicBool, AtomicUsize, AtomicU32, AtomicU64};
314312

315-
pub use std::sync::Arc as Lrc;
316-
pub use std::sync::Weak as Weak;
317-
318313
pub type MTLockRef<'a, T> = &'a MTLock<T>;
319314

320315
#[derive(Debug, Default)]
@@ -519,6 +514,8 @@ cfg_if! {
519514
}
520515
}
521516

517+
pub use std::sync::Arc as Lrc;
518+
522519
pub unsafe trait DynSend {}
523520
pub unsafe trait DynSync {}
524521

0 commit comments

Comments
 (0)