Move the set of features to the features
query.
This commit is contained in:
parent
4566094913
commit
fbcf7d415b
4 changed files with 13 additions and 16 deletions
|
@ -663,19 +663,8 @@ fn stability_index(tcx: TyCtxt<'_>, (): ()) -> Index {
|
|||
stab_map: Default::default(),
|
||||
const_stab_map: Default::default(),
|
||||
depr_map: Default::default(),
|
||||
active_features: Default::default(),
|
||||
};
|
||||
|
||||
let active_lib_features = &tcx.features().declared_lib_features;
|
||||
let active_lang_features = &tcx.features().declared_lang_features;
|
||||
|
||||
// Put the active features into a map for quick lookup.
|
||||
index.active_features = active_lib_features
|
||||
.iter()
|
||||
.map(|&(s, ..)| s)
|
||||
.chain(active_lang_features.iter().map(|&(s, ..)| s))
|
||||
.collect();
|
||||
|
||||
{
|
||||
let mut annotator = Annotator {
|
||||
tcx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue