Skip to content

Commit

Permalink
Auto merge of #12450 - ehuss:allow-internal_features, r=epage
Browse files Browse the repository at this point in the history
Add allow(internal_features)

rust-lang/rust#108955 has added a new deny-by-default lint to reject internal features, which is causing tests to fail on nightly. This adds an `allow` to work around that.
  • Loading branch information
bors committed Aug 5, 2023
2 parents bfb0d19 + 1df0f1d commit f9c45a6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/testsuite/cargo_features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ fn allow_features_to_rustc() {
.file(
"src/lib.rs",
r#"
#![allow(internal_features)]
#![feature(test_2018_feature)]
"#,
)
Expand Down
2 changes: 2 additions & 0 deletions tests/testsuite/custom_target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use cargo_test_support::{basic_manifest, project};
use std::fs;

const MINIMAL_LIB: &str = r#"
#![allow(internal_features)]
#![feature(no_core)]
#![feature(lang_items)]
#![no_core]
Expand Down Expand Up @@ -80,6 +81,7 @@ fn custom_target_dependency() {
.file(
"src/lib.rs",
r#"
#![allow(internal_features)]
#![feature(no_core)]
#![feature(lang_items)]
#![feature(auto_traits)]
Expand Down
1 change: 1 addition & 0 deletions tests/testsuite/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,7 @@ fn doc_target() {
.file(
"src/lib.rs",
r#"
#![allow(internal_features)]
#![feature(no_core, lang_items)]
#![no_core]
Expand Down

0 comments on commit f9c45a6

Please sign in to comment.