File tree 1 file changed +6
-7
lines changed 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1021,7 +1021,12 @@ impl TomlManifest {
1021
1021
None => false ,
1022
1022
} ;
1023
1023
1024
- let warn_default_feat = summary. features ( ) . contains_key ( "default-features" ) ;
1024
+ if summary. features ( ) . contains_key ( "default-features" ) {
1025
+ warnings. push (
1026
+ "`default-features = [\" ..\" ]` was found in [features]. \
1027
+ Did you mean to use `default = [\" ..\" ]`?". to_string ( )
1028
+ )
1029
+ }
1025
1030
1026
1031
let custom_metadata = project. metadata . clone ( ) ;
1027
1032
let mut manifest = Manifest :: new (
@@ -1058,12 +1063,6 @@ impl TomlManifest {
1058
1063
for error in errors {
1059
1064
manifest. warnings_mut ( ) . add_critical_warning ( error) ;
1060
1065
}
1061
- if warn_default_feat {
1062
- manifest. warnings_mut ( ) . add_warning (
1063
- "`default-features = [\" ..\" ]` was found in [features]. \
1064
- Did you mean to use `default = [\" ..\" ]`?". to_string ( )
1065
- ) ;
1066
- }
1067
1066
1068
1067
manifest. feature_gate ( ) ?;
1069
1068
You can’t perform that action at this time.
0 commit comments