@@ -21,7 +21,6 @@ use syntax_pos::{self, Span};
2121use rustc:: hir:: map as hir_map;
2222use rustc:: hir:: def:: Def ;
2323use rustc:: hir:: def_id:: { DefId , LOCAL_CRATE } ;
24- use rustc:: middle:: cstore:: CrateStore ;
2524use rustc:: middle:: privacy:: AccessLevel ;
2625use rustc:: util:: nodemap:: { FxHashSet , FxHashMap } ;
2726
@@ -40,7 +39,6 @@ use doctree::*;
4039// framework from syntax?
4140
4241pub struct RustdocVisitor < ' a , ' tcx : ' a , ' rcx : ' a > {
43- pub cstore : & ' a CrateStore ,
4442 pub module : Module ,
4543 pub attrs : hir:: HirVec < ast:: Attribute > ,
4644 pub cx : & ' a core:: DocContext < ' a , ' tcx , ' rcx > ,
@@ -52,8 +50,7 @@ pub struct RustdocVisitor<'a, 'tcx: 'a, 'rcx: 'a> {
5250}
5351
5452impl < ' a , ' tcx , ' rcx > RustdocVisitor < ' a , ' tcx , ' rcx > {
55- pub fn new ( cstore : & ' a CrateStore ,
56- cx : & ' a core:: DocContext < ' a , ' tcx , ' rcx > ) -> RustdocVisitor < ' a , ' tcx , ' rcx > {
53+ pub fn new ( cx : & ' a core:: DocContext < ' a , ' tcx , ' rcx > ) -> RustdocVisitor < ' a , ' tcx , ' rcx > {
5754 // If the root is re-exported, terminate all recursion.
5855 let mut stack = FxHashSet ( ) ;
5956 stack. insert ( ast:: CRATE_NODE_ID ) ;
@@ -65,7 +62,6 @@ impl<'a, 'tcx, 'rcx> RustdocVisitor<'a, 'tcx, 'rcx> {
6562 inlining : false ,
6663 inside_public_path : true ,
6764 exact_paths : Some ( FxHashMap ( ) ) ,
68- cstore,
6965 }
7066 }
7167
0 commit comments