From a0638d9b23e8e9ccc77b6d3166fd8f162dbcc148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20K=C3=A5re=20Alsaker?= Date: Tue, 2 Apr 2019 21:29:23 +0200 Subject: [PATCH] Use Arc instead of Rc --- src/librustc_data_structures/sync.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/librustc_data_structures/sync.rs b/src/librustc_data_structures/sync.rs index 73247c1469ef..e0ef1e4b8b1b 100644 --- a/src/librustc_data_structures/sync.rs +++ b/src/librustc_data_structures/sync.rs @@ -177,8 +177,9 @@ cfg_if! { pub type MetadataRef = OwningRef, [u8]>; - pub use std::rc::Rc as Lrc; - pub use std::rc::Weak as Weak; + pub use std::sync::Arc as Lrc; + pub use std::sync::Weak as Weak; + pub use std::cell::Ref as ReadGuard; pub use std::cell::Ref as MappedReadGuard; pub use std::cell::RefMut as WriteGuard;