@@ -21,7 +21,6 @@ use syntax_pos::{self, Span};
21
21
use rustc:: hir:: map as hir_map;
22
22
use rustc:: hir:: def:: Def ;
23
23
use rustc:: hir:: def_id:: { DefId , LOCAL_CRATE } ;
24
- use rustc:: middle:: cstore:: CrateStore ;
25
24
use rustc:: middle:: privacy:: AccessLevel ;
26
25
use rustc:: util:: nodemap:: { FxHashSet , FxHashMap } ;
27
26
@@ -40,7 +39,6 @@ use doctree::*;
40
39
// framework from syntax?
41
40
42
41
pub struct RustdocVisitor < ' a , ' tcx : ' a , ' rcx : ' a > {
43
- pub cstore : & ' a CrateStore ,
44
42
pub module : Module ,
45
43
pub attrs : hir:: HirVec < ast:: Attribute > ,
46
44
pub cx : & ' a core:: DocContext < ' a , ' tcx , ' rcx > ,
@@ -52,8 +50,7 @@ pub struct RustdocVisitor<'a, 'tcx: 'a, 'rcx: 'a> {
52
50
}
53
51
54
52
impl < ' 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 > {
57
54
// If the root is re-exported, terminate all recursion.
58
55
let mut stack = FxHashSet ( ) ;
59
56
stack. insert ( ast:: CRATE_NODE_ID ) ;
@@ -65,7 +62,6 @@ impl<'a, 'tcx, 'rcx> RustdocVisitor<'a, 'tcx, 'rcx> {
65
62
inlining : false ,
66
63
inside_public_path : true ,
67
64
exact_paths : Some ( FxHashMap ( ) ) ,
68
- cstore,
69
65
}
70
66
}
71
67
0 commit comments