File tree 1 file changed +7
-12
lines changed
1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,6 @@ impl Features {
546
546
warnings : & mut Vec < String > ,
547
547
) -> CargoResult < ( ) > {
548
548
let nightly_features_allowed = self . nightly_features_allowed ;
549
- let is_local = self . is_local ;
550
549
let Some ( ( slot, feature) ) = self . status ( feature_name) else {
551
550
bail ! ( "unknown cargo feature `{}`" , feature_name)
552
551
} ;
@@ -567,19 +566,15 @@ impl Features {
567
566
568
567
match feature. stability {
569
568
Status :: Stable => {
570
- // The user can't do anything about non-local packages.
571
- // Warnings are usually suppressed, but just being cautious here.
572
- if is_local {
573
- let warning = format ! (
574
- "the cargo feature `{}` has been stabilized in the {} \
569
+ let warning = format ! (
570
+ "the cargo feature `{}` has been stabilized in the {} \
575
571
release and is no longer necessary to be listed in the \
576
572
manifest\n {}",
577
- feature_name,
578
- feature. version,
579
- see_docs( )
580
- ) ;
581
- warnings. push ( warning) ;
582
- }
573
+ feature_name,
574
+ feature. version,
575
+ see_docs( )
576
+ ) ;
577
+ warnings. push ( warning) ;
583
578
}
584
579
Status :: Unstable if !nightly_features_allowed => bail ! (
585
580
"the cargo feature `{}` requires a nightly version of \
You can’t perform that action at this time.
0 commit comments