@@ -40,7 +40,7 @@ impl<'tcx> LibFeatureCollector<'tcx> {
4040 } ;
4141
4242 let feature_stability = match level {
43- StabilityLevel :: Unstable { .. } => FeatureStability :: Unstable ,
43+ StabilityLevel :: Unstable { alias , .. } => FeatureStability :: Unstable ( alias ) ,
4444 StabilityLevel :: Stable { since, .. } => FeatureStability :: AcceptedSince ( match since {
4545 StableSince :: Version ( v) => Symbol :: intern ( & v. to_string ( ) ) ,
4646 StableSince :: Current => sym:: env_CFG_RELEASE,
@@ -71,15 +71,15 @@ impl<'tcx> LibFeatureCollector<'tcx> {
7171 } ) ;
7272 }
7373 }
74- ( FeatureStability :: AcceptedSince ( _) , Some ( ( FeatureStability :: Unstable , _) ) ) => {
74+ ( FeatureStability :: AcceptedSince ( _) , Some ( ( FeatureStability :: Unstable ( _ ) , _) ) ) => {
7575 self . tcx . dcx ( ) . emit_err ( FeaturePreviouslyDeclared {
7676 span,
7777 feature,
7878 declared : "stable" ,
7979 prev_declared : "unstable" ,
8080 } ) ;
8181 }
82- ( FeatureStability :: Unstable , Some ( ( FeatureStability :: AcceptedSince ( _) , _) ) ) => {
82+ ( FeatureStability :: Unstable ( _ ) , Some ( ( FeatureStability :: AcceptedSince ( _) , _) ) ) => {
8383 self . tcx . dcx ( ) . emit_err ( FeaturePreviouslyDeclared {
8484 span,
8585 feature,
@@ -88,7 +88,7 @@ impl<'tcx> LibFeatureCollector<'tcx> {
8888 } ) ;
8989 }
9090 // duplicate `unstable` feature is ok.
91- ( FeatureStability :: Unstable , Some ( ( FeatureStability :: Unstable , _) ) ) => { }
91+ ( FeatureStability :: Unstable ( _ ) , Some ( ( FeatureStability :: Unstable ( _ ) , _) ) ) => { }
9292 }
9393 }
9494}
0 commit comments