enable rustc lints
(but not in cargo-miri and ui_test)
This commit is contained in:
parent
a522442521
commit
366d11b2d8
@ -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
2
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"
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user