mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Auto merge of #12450 - ehuss:allow-internal_features, r=epage
Add allow(internal_features) https://github.com/rust-lang/rust/pull/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.
This commit is contained in:
commit
f9c45a66d8
@ -295,6 +295,7 @@ fn allow_features_to_rustc() {
|
||||
.file(
|
||||
"src/lib.rs",
|
||||
r#"
|
||||
#![allow(internal_features)]
|
||||
#![feature(test_2018_feature)]
|
||||
"#,
|
||||
)
|
||||
|
@ -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]
|
||||
@ -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)]
|
||||
|
@ -756,6 +756,7 @@ fn doc_target() {
|
||||
.file(
|
||||
"src/lib.rs",
|
||||
r#"
|
||||
#![allow(internal_features)]
|
||||
#![feature(no_core, lang_items)]
|
||||
#![no_core]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user