enable rustc lints

(but not in cargo-miri and ui_test)
This commit is contained in:
Ralf Jung 2022-08-07 09:17:16 -04:00
parent a522442521
commit 366d11b2d8
3 changed files with 9 additions and 2 deletions

View File

@ -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;

2
miri
View File

@ -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"

View File

@ -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;