@@ -41,6 +41,7 @@ pub struct DocContext {
41
41
pub external_paths : ExternalPaths ,
42
42
pub external_traits : RefCell < Option < HashMap < ast:: DefId , clean:: Trait > > > ,
43
43
pub external_typarams : RefCell < Option < HashMap < ast:: DefId , String > > > ,
44
+ pub inlined : RefCell < Option < HashSet < ast:: DefId > > > ,
44
45
}
45
46
46
47
impl DocContext {
@@ -58,6 +59,7 @@ pub struct CrateAnalysis {
58
59
pub external_paths : ExternalPaths ,
59
60
pub external_traits : RefCell < Option < HashMap < ast:: DefId , clean:: Trait > > > ,
60
61
pub external_typarams : RefCell < Option < HashMap < ast:: DefId , String > > > ,
62
+ pub inlined : RefCell < Option < HashSet < ast:: DefId > > > ,
61
63
}
62
64
63
65
/// Parses, resolves, and typechecks the given crate
@@ -111,12 +113,14 @@ fn get_ast_and_resolve(cpath: &Path, libs: HashSet<Path>, cfgs: Vec<String>)
111
113
external_traits : RefCell :: new ( Some ( HashMap :: new ( ) ) ) ,
112
114
external_typarams : RefCell :: new ( Some ( HashMap :: new ( ) ) ) ,
113
115
external_paths : RefCell :: new ( Some ( HashMap :: new ( ) ) ) ,
116
+ inlined : RefCell :: new ( Some ( HashSet :: new ( ) ) ) ,
114
117
} , CrateAnalysis {
115
118
exported_items : exported_items,
116
119
public_items : public_items,
117
120
external_paths : RefCell :: new ( None ) ,
118
121
external_traits : RefCell :: new ( None ) ,
119
122
external_typarams : RefCell :: new ( None ) ,
123
+ inlined : RefCell :: new ( None ) ,
120
124
} )
121
125
}
122
126
@@ -138,5 +142,7 @@ pub fn run_core(libs: HashSet<Path>, cfgs: Vec<String>, path: &Path)
138
142
* analysis. external_traits . borrow_mut ( ) = map;
139
143
let map = ctxt. external_typarams . borrow_mut ( ) . take ( ) ;
140
144
* analysis. external_typarams . borrow_mut ( ) = map;
145
+ let map = ctxt. inlined . borrow_mut ( ) . take ( ) ;
146
+ * analysis. inlined . borrow_mut ( ) = map;
141
147
( krate, analysis)
142
148
}
0 commit comments