2
2
//! propagating default levels lexically from parent to children ast nodes.
3
3
4
4
use rustc_attr:: { self as attr, ConstStability , Stability } ;
5
- use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
5
+ use rustc_data_structures:: fx:: { FxHashSet , FxIndexMap } ;
6
6
use rustc_errors:: struct_span_err;
7
7
use rustc_hir as hir;
8
8
use rustc_hir:: def:: { DefKind , Res } ;
@@ -854,7 +854,7 @@ pub fn check_unused_or_stable_features(tcx: TyCtxt<'_>) {
854
854
}
855
855
856
856
let declared_lib_features = & tcx. features ( ) . declared_lib_features ;
857
- let mut remaining_lib_features = FxHashMap :: default ( ) ;
857
+ let mut remaining_lib_features = FxIndexMap :: default ( ) ;
858
858
for ( feature, span) in declared_lib_features {
859
859
if !tcx. sess . opts . unstable_features . is_nightly_build ( ) {
860
860
struct_span_err ! (
@@ -881,7 +881,7 @@ pub fn check_unused_or_stable_features(tcx: TyCtxt<'_>) {
881
881
remaining_lib_features. remove ( & sym:: libc) ;
882
882
remaining_lib_features. remove ( & sym:: test) ;
883
883
884
- let check_features = |remaining_lib_features : & mut FxHashMap < _ , _ > , defined_features : & [ _ ] | {
884
+ let check_features = |remaining_lib_features : & mut FxIndexMap < _ , _ > , defined_features : & [ _ ] | {
885
885
for & ( feature, since) in defined_features {
886
886
if let Some ( since) = since {
887
887
if let Some ( span) = remaining_lib_features. get ( & feature) {
0 commit comments