Skip to content

Commit 8c40102

Browse files
committed
use Arc as Lrc
1 parent d610b0c commit 8c40102

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
@@ -166,8 +166,6 @@ cfg_if! {
166166

167167
pub type MetadataRef = OwningRef<Box<dyn Erased>, [u8]>;
168168

169-
pub use std::rc::Rc as Lrc;
170-
pub use std::rc::Weak as Weak;
171169
pub use std::cell::Ref as ReadGuard;
172170
pub use std::cell::Ref as MappedReadGuard;
173171
pub use std::cell::RefMut as WriteGuard;
@@ -264,9 +262,6 @@ cfg_if! {
264262

265263
pub use std::sync::atomic::{AtomicBool, AtomicUsize, AtomicU32, AtomicU64};
266264

267-
pub use std::sync::Arc as Lrc;
268-
pub use std::sync::Weak as Weak;
269-
270265
pub type MTRef<'a, T> = &'a T;
271266

272267
#[derive(Debug, Default)]
@@ -364,6 +359,8 @@ cfg_if! {
364359
}
365360
}
366361

362+
pub use std::sync::Arc as Lrc;
363+
367364
pub fn assert_sync<T: ?Sized + Sync>() {}
368365
pub fn assert_send<T: ?Sized + Send>() {}
369366
pub fn assert_send_val<T: ?Sized + Send>(_t: &T) {}

0 commit comments

Comments
 (0)