diff --git a/cargo-miri/src/main.rs b/cargo-miri/src/main.rs index f809eecf96a..7b16af6f0c6 100644 --- a/cargo-miri/src/main.rs +++ b/cargo-miri/src/main.rs @@ -1,5 +1,5 @@ #![feature(let_else)] -#![allow(clippy::useless_format, clippy::derive_partial_eq_without_eq)] +#![allow(clippy::useless_format, clippy::derive_partial_eq_without_eq, rustc::internal)] mod arg; mod phases; diff --git a/miri b/miri index 0295fc3ab3a..5893d0ca05f 100755 --- a/miri +++ b/miri @@ -124,6 +124,8 @@ fi if [ -z "$CARGO_PROFILE_DEV_OPT_LEVEL" ]; then export CARGO_PROFILE_DEV_OPT_LEVEL=2 fi +# Enable rustc-specific lints +export RUSTFLAGS="-Zunstable-options -Wrustc::internal $RUSTFLAGS" # We set the rpath so that Miri finds the private rustc libraries it needs. export RUSTFLAGS="-C link-args=-Wl,-rpath,$LIBDIR $RUSTFLAGS" diff --git a/ui_test/src/lib.rs b/ui_test/src/lib.rs index 9206c0f3d8e..871574c4936 100644 --- a/ui_test/src/lib.rs +++ b/ui_test/src/lib.rs @@ -1,4 +1,9 @@ -#![allow(clippy::enum_variant_names, clippy::useless_format, clippy::too_many_arguments)] +#![allow( + clippy::enum_variant_names, + clippy::useless_format, + clippy::too_many_arguments, + rustc::internal +)] use std::collections::VecDeque; use std::ffi::OsString;