Skip to content

Commit a0638d9

Browse files
committed
Use Arc instead of Rc
1 parent e008e4f commit a0638d9

File tree

1 file changed

+3
-2
lines changed
  • src/librustc_data_structures

1 file changed

+3
-2
lines changed

src/librustc_data_structures/sync.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,9 @@ cfg_if! {
177177

178178
pub type MetadataRef = OwningRef<Box<dyn Erased>, [u8]>;
179179

180-
pub use std::rc::Rc as Lrc;
181-
pub use std::rc::Weak as Weak;
180+
pub use std::sync::Arc as Lrc;
181+
pub use std::sync::Weak as Weak;
182+
182183
pub use std::cell::Ref as ReadGuard;
183184
pub use std::cell::Ref as MappedReadGuard;
184185
pub use std::cell::RefMut as WriteGuard;

0 commit comments

Comments
 (0)