Skip to content

Commit f9c45a6

Browse files
committed
Auto merge of #12450 - ehuss:allow-internal_features, r=epage
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.
2 parents bfb0d19 + 1df0f1d commit f9c45a6

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

tests/testsuite/cargo_features.rs

+1
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ fn allow_features_to_rustc() {
295295
.file(
296296
"src/lib.rs",
297297
r#"
298+
#![allow(internal_features)]
298299
#![feature(test_2018_feature)]
299300
"#,
300301
)

tests/testsuite/custom_target.rs

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use cargo_test_support::{basic_manifest, project};
44
use std::fs;
55

66
const MINIMAL_LIB: &str = r#"
7+
#![allow(internal_features)]
78
#![feature(no_core)]
89
#![feature(lang_items)]
910
#![no_core]
@@ -80,6 +81,7 @@ fn custom_target_dependency() {
8081
.file(
8182
"src/lib.rs",
8283
r#"
84+
#![allow(internal_features)]
8385
#![feature(no_core)]
8486
#![feature(lang_items)]
8587
#![feature(auto_traits)]

tests/testsuite/doc.rs

+1
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,7 @@ fn doc_target() {
756756
.file(
757757
"src/lib.rs",
758758
r#"
759+
#![allow(internal_features)]
759760
#![feature(no_core, lang_items)]
760761
#![no_core]
761762

0 commit comments

Comments
 (0)