File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -403,10 +403,14 @@ impl<'a, 'tcx> Index<'tcx> {
403
403
active_features : Default :: default ( ) ,
404
404
} ;
405
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 ( ) ;
406
+ let active_lib_features = & tcx. features ( ) . declared_lib_features ;
407
+ let active_lang_features = & tcx. features ( ) . declared_lang_features ;
408
+
409
+ // 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 ( ) ;
410
414
411
415
{
412
416
let krate = tcx. hir ( ) . krate ( ) ;
You can’t perform that action at this time.
0 commit comments