diff --git a/rust-version b/rust-version index 853bf9bd52ee..012763c00023 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -14890954ce17c44d944eda988c5a64bb4c5ec9eb +bea0372a1a7a31b81f28cc4d9a83a2dc9a79d008 diff --git a/tests/compiletest.rs b/tests/compiletest.rs index d0705b26b7a9..00fd039ad7e8 100644 --- a/tests/compiletest.rs +++ b/tests/compiletest.rs @@ -28,10 +28,12 @@ fn run_tests(mode: &str, path: &str, target: &str, mut flags: Vec) { let in_rustc_test_suite = rustc_test_suite().is_some(); // Add some flags we always want. flags.push("--edition 2018".to_owned()); - if !in_rustc_test_suite { - // Only `-Dwarnings` on the Miri side to make the rustc toolstate management less painful. - // (We often get warnings when e.g. a feature gets stabilized or some lint gets added/improved.) - flags.push("-Dwarnings -Dunused".to_owned()); // overwrite the -Aunused in compiletest-rs + if in_rustc_test_suite { + // Less aggressive warnings to make the rustc toolstate management less painful. + // (We often get warnings when e.g. a feature gets stabilized or some lint gets added/improved.) + flags.push("-Astable-features".to_owned()); + } else { + flags.push("-Dwarnings -Dunused".to_owned()); // overwrite the -Aunused in compiletest-rs } if let Ok(sysroot) = std::env::var("MIRI_SYSROOT") { flags.push(format!("--sysroot {}", sysroot)); diff --git a/tests/run-pass/async-fn.rs b/tests/run-pass/async-fn.rs index 91266f67aa8e..dd31d901062f 100644 --- a/tests/run-pass/async-fn.rs +++ b/tests/run-pass/async-fn.rs @@ -1,4 +1,4 @@ -#![feature(async_await, never_type)] +#![feature(never_type)] use std::{future::Future, pin::Pin, task::Poll, ptr}; use std::task::{Waker, RawWaker, RawWakerVTable, Context};