Skip to content

Commit

Permalink
#[allow(internal_features)] in RUSTC_BOOTSTRAP test
Browse files Browse the repository at this point in the history
This will be required in the future (where "the future" is my PR
which fails CI because of cargo here).
  • Loading branch information
Noratrieb committed Aug 1, 2023
1 parent 772fd5f commit 51ecc32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testsuite/build_script_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ fn rustc_bootstrap() {
"#;
let p = project()
.file("Cargo.toml", &basic_manifest("has-dashes", "0.0.1"))
.file("src/lib.rs", "#![feature(rustc_attrs)]")
.file("src/lib.rs", "#![allow(internal_features)] #![feature(rustc_attrs)]")
.file("build.rs", build_rs)
.build();
// RUSTC_BOOTSTRAP unset on stable should error
Expand Down Expand Up @@ -154,7 +154,7 @@ fn rustc_bootstrap() {
// Tests for binaries instead of libraries
let p = project()
.file("Cargo.toml", &basic_manifest("foo", "0.0.1"))
.file("src/main.rs", "#![feature(rustc_attrs)] fn main() {}")
.file("src/main.rs", "#![allow(internal_features)] #![feature(rustc_attrs)] fn main() {}")
.file("build.rs", build_rs)
.build();
// nightly should warn when there's no library whether or not RUSTC_BOOTSTRAP is set
Expand Down

0 comments on commit 51ecc32

Please sign in to comment.