]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/traits/specialize/specialization_graph.rs
Replace Rc with Lrc for shared data
[rust.git] / src / librustc / traits / specialize / specialization_graph.rs
index a10169e13e60a705e4bc9e0bc3d6cf75cf5a4a75..a9b38d6a8d877d0ca091dc397c60a87796e60850 100644 (file)
@@ -17,7 +17,7 @@
 use traits;
 use ty::{self, TyCtxt, TypeFoldable};
 use ty::fast_reject::{self, SimplifiedType};
-use std::rc::Rc;
+use rustc_data_structures::sync::Lrc;
 use syntax::ast::Name;
 use util::nodemap::{DefIdMap, FxHashMap};
 
@@ -327,7 +327,7 @@ pub fn def_id(&self) -> DefId {
 
 pub struct Ancestors {
     trait_def_id: DefId,
-    specialization_graph: Rc<Graph>,
+    specialization_graph: Lrc<Graph>,
     current_source: Option<Node>,
 }