Skip to content

Commit 51ecc32

Browse files
committed
#[allow(internal_features)] in RUSTC_BOOTSTRAP test
This will be required in the future (where "the future" is my PR which fails CI because of cargo here).
1 parent 772fd5f commit 51ecc32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testsuite/build_script_env.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ fn rustc_bootstrap() {
117117
"#;
118118
let p = project()
119119
.file("Cargo.toml", &basic_manifest("has-dashes", "0.0.1"))
120-
.file("src/lib.rs", "#![feature(rustc_attrs)]")
120+
.file("src/lib.rs", "#![allow(internal_features)] #![feature(rustc_attrs)]")
121121
.file("build.rs", build_rs)
122122
.build();
123123
// RUSTC_BOOTSTRAP unset on stable should error
@@ -154,7 +154,7 @@ fn rustc_bootstrap() {
154154
// Tests for binaries instead of libraries
155155
let p = project()
156156
.file("Cargo.toml", &basic_manifest("foo", "0.0.1"))
157-
.file("src/main.rs", "#![feature(rustc_attrs)] fn main() {}")
157+
.file("src/main.rs", "#![allow(internal_features)] #![feature(rustc_attrs)] fn main() {}")
158158
.file("build.rs", build_rs)
159159
.build();
160160
// nightly should warn when there's no library whether or not RUSTC_BOOTSTRAP is set

0 commit comments

Comments
 (0)