Skip to content

Commit

Permalink
Use Arc instead of Rc
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Apr 2, 2019
1 parent e008e4f commit a0638d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/librustc_data_structures/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,9 @@ cfg_if! {

pub type MetadataRef = OwningRef<Box<dyn Erased>, [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;
Expand Down

0 comments on commit a0638d9

Please sign in to comment.