Skip to content

Commit c24e1c1

Browse files
authored
Use raw false during cfg test (#16261)
Due to rust-lang/rust#146978, which has been approved, this test would fail because `--cfg false` is denied now.
2 parents 8363559 + 482994b commit c24e1c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/testsuite/cfg.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ fn cfg_booleans() {
662662
663663
[target.'cfg(true)'.dependencies]
664664
b = { path = 'b' }
665-
665+
666666
[target.'cfg(false)'.dependencies]
667667
c = { path = 'c' }
668668
"#,
@@ -794,7 +794,7 @@ fn cfg_booleans_rustflags_no_effect() {
794794
795795
[target.'cfg(true)'.dependencies]
796796
b = { path = 'b' }
797-
797+
798798
[target.'cfg(false)'.dependencies]
799799
c = { path = 'c' }
800800
"#,
@@ -807,7 +807,7 @@ fn cfg_booleans_rustflags_no_effect() {
807807
.build();
808808

809809
p.cargo("check")
810-
.env("RUSTFLAGS", "--cfg false")
810+
.env("RUSTFLAGS", "--cfg r#false")
811811
.with_stderr_data(str![[r#"
812812
[LOCKING] 2 packages to latest compatible versions
813813
[CHECKING] b v0.0.1 ([ROOT]/foo/b)

0 commit comments

Comments
 (0)