File tree 3 files changed +6
-12
lines changed
3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -916,10 +916,8 @@ impl BuildOutput {
916
916
if extra_check_cfg {
917
917
check_cfgs. push ( value. to_string ( ) ) ;
918
918
} else {
919
- warnings. push ( format ! (
920
- "{}{} requires -Zcheck-cfg flag" ,
921
- syntax_prefix, key
922
- ) ) ;
919
+ // silently ignoring the instruction to try to
920
+ // minimise MSRV annoyance when stabilizing -Zcheck-cfg
923
921
}
924
922
}
925
923
"rustc-env" => {
Original file line number Diff line number Diff line change @@ -207,10 +207,8 @@ fn parse_links_overrides(
207
207
let list = value. list ( key) ?;
208
208
output. check_cfgs . extend ( list. iter ( ) . map ( |v| v. 0 . clone ( ) ) ) ;
209
209
} else {
210
- config. shell ( ) . warn ( format ! (
211
- "target config `{}.{}` requires -Zcheck-cfg flag" ,
212
- target_key, key
213
- ) ) ?;
210
+ // silently ignoring the instruction to try to
211
+ // minimise MSRV annoyance when stabilizing -Zcheck-cfg
214
212
}
215
213
}
216
214
"rustc-env" => {
Original file line number Diff line number Diff line change @@ -471,9 +471,7 @@ fn build_script_override_feature_gate() {
471
471
. build ( ) ;
472
472
473
473
p. cargo ( "check" )
474
- . with_stderr_contains (
475
- "warning: target config[..]rustc-check-cfg[..] requires -Zcheck-cfg flag" ,
476
- )
474
+ . with_stderr_does_not_contain ( "warning: [..]rustc-check-cfg[..]" )
477
475
. run ( ) ;
478
476
}
479
477
@@ -555,7 +553,7 @@ fn build_script_feature_gate() {
555
553
. build ( ) ;
556
554
557
555
p. cargo ( "check" )
558
- . with_stderr_contains ( "warning[..]cargo:: rustc-check-cfg requires -Zcheck-cfg flag " )
556
+ . with_stderr_does_not_contain ( "warning: [..]rustc-check-cfg[..] " )
559
557
. with_status ( 0 )
560
558
. run ( ) ;
561
559
}
You can’t perform that action at this time.
0 commit comments