We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74e35d2 commit 0f6b148Copy full SHA for 0f6b148
src/librustc/middle/stability.rs
@@ -403,10 +403,14 @@ impl<'a, 'tcx> Index<'tcx> {
403
active_features: Default::default(),
404
};
405
406
- let ref active_lib_features = tcx.features().declared_lib_features;
407
-
408
- // Put the active features into a map for quick lookup
409
- index.active_features = active_lib_features.iter().map(|&(ref s, _)| s.clone()).collect();
+ 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.
410
+ index.active_features =
411
+ active_lib_features.iter().map(|&(ref s, ..)| s.clone())
412
+ .chain(active_lang_features.iter().map(|&(ref s, ..)| s.clone()))
413
+ .collect();
414
415
{
416
let krate = tcx.hir().krate();
0 commit comments