@@ -14,7 +14,7 @@ use rustc_driver::{driver, target_features, abort_on_err};
1414use rustc:: dep_graph:: DepGraph ;
1515use rustc:: session:: { self , config} ;
1616use rustc:: hir:: def_id:: DefId ;
17- use rustc:: hir:: def:: Def ;
17+ use rustc:: hir:: def:: { Def , ExportMap } ;
1818use rustc:: middle:: privacy:: AccessLevels ;
1919use rustc:: ty:: { self , TyCtxt } ;
2020use rustc:: hir:: map as hir_map;
@@ -74,6 +74,7 @@ pub struct DocContext<'a, 'tcx: 'a> {
7474 pub ty_substs : RefCell < FxHashMap < Def , clean:: Type > > ,
7575 /// Table node id of lifetime parameter definition -> substituted lifetime
7676 pub lt_substs : RefCell < FxHashMap < ast:: NodeId , clean:: Lifetime > > ,
77+ pub export_map : ExportMap ,
7778}
7879
7980impl < ' b , ' tcx > DocContext < ' b , ' tcx > {
@@ -196,7 +197,7 @@ pub fn run_core(search_paths: SearchPaths,
196197 sess. fatal ( "Compilation failed, aborting rustdoc" ) ;
197198 }
198199
199- let ty:: CrateAnalysis { access_levels, .. } = analysis;
200+ let ty:: CrateAnalysis { access_levels, export_map , .. } = analysis;
200201
201202 // Convert from a NodeId set to a DefId set since we don't always have easy access
202203 // to the map from defid -> nodeid
@@ -218,6 +219,7 @@ pub fn run_core(search_paths: SearchPaths,
218219 renderinfo : Default :: default ( ) ,
219220 ty_substs : Default :: default ( ) ,
220221 lt_substs : Default :: default ( ) ,
222+ export_map : export_map,
221223 } ;
222224 debug ! ( "crate: {:?}" , ctxt. map. krate( ) ) ;
223225
0 commit comments