@@ -408,7 +408,6 @@ fn build_work(build_runner: &mut BuildRunner<'_, '_>, unit: &Unit) -> CargoResul
408408 paths:: create_dir_all ( & script_out_dir) ?;
409409
410410 let nightly_features_allowed = build_runner. bcx . gctx . nightly_features_allowed ;
411- let extra_check_cfg = build_runner. bcx . gctx . cli_unstable ( ) . check_cfg ;
412411 let targets: Vec < Target > = unit. pkg . targets ( ) . to_vec ( ) ;
413412 let msrv = unit. pkg . rust_version ( ) . cloned ( ) ;
414413 // Need a separate copy for the fresh closure.
@@ -556,7 +555,6 @@ fn build_work(build_runner: &mut BuildRunner<'_, '_>, unit: &Unit) -> CargoResul
556555 & pkg_descr,
557556 & script_out_dir,
558557 & script_out_dir,
559- extra_check_cfg,
560558 nightly_features_allowed,
561559 & targets,
562560 & msrv,
@@ -585,7 +583,6 @@ fn build_work(build_runner: &mut BuildRunner<'_, '_>, unit: &Unit) -> CargoResul
585583 & pkg_descr,
586584 & prev_script_out_dir,
587585 & script_out_dir,
588- extra_check_cfg,
589586 nightly_features_allowed,
590587 & targets_fresh,
591588 & msrv_fresh,
@@ -642,7 +639,6 @@ impl BuildOutput {
642639 pkg_descr : & str ,
643640 script_out_dir_when_generated : & Path ,
644641 script_out_dir : & Path ,
645- extra_check_cfg : bool ,
646642 nightly_features_allowed : bool ,
647643 targets : & [ Target ] ,
648644 msrv : & Option < RustVersion > ,
@@ -654,7 +650,6 @@ impl BuildOutput {
654650 pkg_descr,
655651 script_out_dir_when_generated,
656652 script_out_dir,
657- extra_check_cfg,
658653 nightly_features_allowed,
659654 targets,
660655 msrv,
@@ -665,17 +660,13 @@ impl BuildOutput {
665660 ///
666661 /// * `pkg_descr` --- for error messages
667662 /// * `library_name` --- for determining if `RUSTC_BOOTSTRAP` should be allowed
668- /// * `extra_check_cfg` --- for unstable feature [`-Zcheck-cfg`]
669- ///
670- /// [`-Zcheck-cfg`]: https://doc.rust-lang.org/cargo/reference/unstable.html#check-cfg
671663 pub fn parse (
672664 input : & [ u8 ] ,
673665 // Takes String instead of InternedString so passing `unit.pkg.name()` will give a compile error.
674666 library_name : Option < String > ,
675667 pkg_descr : & str ,
676668 script_out_dir_when_generated : & Path ,
677669 script_out_dir : & Path ,
678- extra_check_cfg : bool ,
679670 nightly_features_allowed : bool ,
680671 targets : & [ Target ] ,
681672 msrv : & Option < RustVersion > ,
@@ -908,12 +899,7 @@ impl BuildOutput {
908899 }
909900 "rustc-cfg" => cfgs. push ( value. to_string ( ) ) ,
910901 "rustc-check-cfg" => {
911- if extra_check_cfg {
912- check_cfgs. push ( value. to_string ( ) ) ;
913- } else {
914- // silently ignoring the instruction to try to
915- // minimise MSRV annoyance when stabilizing -Zcheck-cfg
916- }
902+ check_cfgs. push ( value. to_string ( ) ) ;
917903 }
918904 "rustc-env" => {
919905 let ( key, val) = BuildOutput :: parse_rustc_env ( & value, & whence) ?;
@@ -1255,7 +1241,6 @@ fn prev_build_output(
12551241 & unit. pkg . to_string ( ) ,
12561242 & prev_script_out_dir,
12571243 & script_out_dir,
1258- build_runner. bcx . gctx . cli_unstable ( ) . check_cfg ,
12591244 build_runner. bcx . gctx . nightly_features_allowed ,
12601245 unit. pkg . targets ( ) ,
12611246 & unit. pkg . rust_version ( ) . cloned ( ) ,
0 commit comments