diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-01-16 16:25:47 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-03-03 18:08:30 +0100 |
| commit | fbcf7d415b806e494a582c108f609abd43b3ef6b (patch) | |
| tree | 99bf41d7250a462dded6ad8af7e2f927cda607e2 /compiler/rustc_passes | |
| parent | 45660949132222ba7ec0905649b2affd68e0e13c (diff) | |
| download | rust-fbcf7d415b806e494a582c108f609abd43b3ef6b.tar.gz rust-fbcf7d415b806e494a582c108f609abd43b3ef6b.zip | |
Move the set of features to the `features` query.
Diffstat (limited to 'compiler/rustc_passes')
| -rw-r--r-- | compiler/rustc_passes/src/stability.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/compiler/rustc_passes/src/stability.rs b/compiler/rustc_passes/src/stability.rs index df3853d8744..592dc8ce27f 100644 --- a/compiler/rustc_passes/src/stability.rs +++ b/compiler/rustc_passes/src/stability.rs @@ -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, |
