@@ -40,7 +40,7 @@ impl<'tcx> LibFeatureCollector<'tcx> {
40
40
} ;
41
41
42
42
let feature_stability = match level {
43
- StabilityLevel :: Unstable { .. } => FeatureStability :: Unstable ,
43
+ StabilityLevel :: Unstable { alias , .. } => FeatureStability :: Unstable ( alias ) ,
44
44
StabilityLevel :: Stable { since, .. } => FeatureStability :: AcceptedSince ( match since {
45
45
StableSince :: Version ( v) => Symbol :: intern ( & v. to_string ( ) ) ,
46
46
StableSince :: Current => sym:: env_CFG_RELEASE,
@@ -71,15 +71,15 @@ impl<'tcx> LibFeatureCollector<'tcx> {
71
71
} ) ;
72
72
}
73
73
}
74
- ( FeatureStability :: AcceptedSince ( _) , Some ( ( FeatureStability :: Unstable , _) ) ) => {
74
+ ( FeatureStability :: AcceptedSince ( _) , Some ( ( FeatureStability :: Unstable ( _ ) , _) ) ) => {
75
75
self . tcx . dcx ( ) . emit_err ( FeaturePreviouslyDeclared {
76
76
span,
77
77
feature,
78
78
declared : "stable" ,
79
79
prev_declared : "unstable" ,
80
80
} ) ;
81
81
}
82
- ( FeatureStability :: Unstable , Some ( ( FeatureStability :: AcceptedSince ( _) , _) ) ) => {
82
+ ( FeatureStability :: Unstable ( _ ) , Some ( ( FeatureStability :: AcceptedSince ( _) , _) ) ) => {
83
83
self . tcx . dcx ( ) . emit_err ( FeaturePreviouslyDeclared {
84
84
span,
85
85
feature,
@@ -88,7 +88,7 @@ impl<'tcx> LibFeatureCollector<'tcx> {
88
88
} ) ;
89
89
}
90
90
// duplicate `unstable` feature is ok.
91
- ( FeatureStability :: Unstable , Some ( ( FeatureStability :: Unstable , _) ) ) => { }
91
+ ( FeatureStability :: Unstable ( _ ) , Some ( ( FeatureStability :: Unstable ( _ ) , _) ) ) => { }
92
92
}
93
93
}
94
94
}
0 commit comments