Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 366d11b

Browse files
committed
enable rustc lints
(but not in cargo-miri and ui_test)
1 parent a522442 commit 366d11b

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

cargo-miri/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![feature(let_else)]
2-
#![allow(clippy::useless_format, clippy::derive_partial_eq_without_eq)]
2+
#![allow(clippy::useless_format, clippy::derive_partial_eq_without_eq, rustc::internal)]
33

44
mod arg;
55
mod phases;

miri

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ fi
124124
if [ -z "$CARGO_PROFILE_DEV_OPT_LEVEL" ]; then
125125
export CARGO_PROFILE_DEV_OPT_LEVEL=2
126126
fi
127+
# Enable rustc-specific lints
128+
export RUSTFLAGS="-Zunstable-options -Wrustc::internal $RUSTFLAGS"
127129
# We set the rpath so that Miri finds the private rustc libraries it needs.
128130
export RUSTFLAGS="-C link-args=-Wl,-rpath,$LIBDIR $RUSTFLAGS"
129131

ui_test/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
#![allow(clippy::enum_variant_names, clippy::useless_format, clippy::too_many_arguments)]
1+
#![allow(
2+
clippy::enum_variant_names,
3+
clippy::useless_format,
4+
clippy::too_many_arguments,
5+
rustc::internal
6+
)]
27

38
use std::collections::VecDeque;
49
use std::ffi::OsString;

0 commit comments

Comments
 (0)