File tree Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -916,10 +916,8 @@ impl BuildOutput {
916916 if extra_check_cfg {
917917 check_cfgs. push ( value. to_string ( ) ) ;
918918 } 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
923921 }
924922 }
925923 "rustc-env" => {
Original file line number Diff line number Diff line change @@ -208,10 +208,8 @@ fn parse_links_overrides(
208208 let list = value. list ( key) ?;
209209 output. check_cfgs . extend ( list. iter ( ) . map ( |v| v. 0 . clone ( ) ) ) ;
210210 } else {
211- gctx. shell ( ) . warn ( format ! (
212- "target config `{}.{}` requires -Zcheck-cfg flag" ,
213- target_key, key
214- ) ) ?;
211+ // silently ignoring the instruction to try to
212+ // minimise MSRV annoyance when stabilizing -Zcheck-cfg
215213 }
216214 }
217215 "rustc-env" => {
Original file line number Diff line number Diff line change @@ -471,9 +471,7 @@ fn build_script_override_feature_gate() {
471471 . build ( ) ;
472472
473473 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[..]" )
477475 . run ( ) ;
478476}
479477
@@ -555,7 +553,7 @@ fn build_script_feature_gate() {
555553 . build ( ) ;
556554
557555 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[..] " )
559557 . with_status ( 0 )
560558 . run ( ) ;
561559}
You can’t perform that action at this time.
0 commit comments