@@ -14,7 +14,7 @@ use rustc_driver::{driver, target_features, abort_on_err};
14
14
use rustc:: dep_graph:: DepGraph ;
15
15
use rustc:: session:: { self , config} ;
16
16
use rustc:: hir:: def_id:: DefId ;
17
- use rustc:: hir:: def:: Def ;
17
+ use rustc:: hir:: def:: { Def , ExportMap } ;
18
18
use rustc:: middle:: privacy:: AccessLevels ;
19
19
use rustc:: ty:: { self , TyCtxt } ;
20
20
use rustc:: hir:: map as hir_map;
@@ -74,6 +74,7 @@ pub struct DocContext<'a, 'tcx: 'a> {
74
74
pub ty_substs : RefCell < FxHashMap < Def , clean:: Type > > ,
75
75
/// Table node id of lifetime parameter definition -> substituted lifetime
76
76
pub lt_substs : RefCell < FxHashMap < ast:: NodeId , clean:: Lifetime > > ,
77
+ pub export_map : ExportMap ,
77
78
}
78
79
79
80
impl < ' b , ' tcx > DocContext < ' b , ' tcx > {
@@ -196,7 +197,7 @@ pub fn run_core(search_paths: SearchPaths,
196
197
sess. fatal ( "Compilation failed, aborting rustdoc" ) ;
197
198
}
198
199
199
- let ty:: CrateAnalysis { access_levels, .. } = analysis;
200
+ let ty:: CrateAnalysis { access_levels, export_map , .. } = analysis;
200
201
201
202
// Convert from a NodeId set to a DefId set since we don't always have easy access
202
203
// to the map from defid -> nodeid
@@ -218,6 +219,7 @@ pub fn run_core(search_paths: SearchPaths,
218
219
renderinfo : Default :: default ( ) ,
219
220
ty_substs : Default :: default ( ) ,
220
221
lt_substs : Default :: default ( ) ,
222
+ export_map : export_map,
221
223
} ;
222
224
debug ! ( "crate: {:?}" , ctxt. map. krate( ) ) ;
223
225
0 commit comments