diff options
| author | bors <bors@rust-lang.org> | 2025-03-20 04:20:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-03-20 04:20:13 +0000 |
| commit | 4e2b096ed6c8a1400624a54f6c4fd0c0ce48a579 (patch) | |
| tree | f9b611e2325e6d4e21e7a274c5be119a6760a0be /src | |
| parent | 70237a8cb905fc48ed6148d2f2dba756535a5940 (diff) | |
| parent | e2320b32c5268913349549fc59972443975ceec4 (diff) | |
| download | rust-4e2b096ed6c8a1400624a54f6c4fd0c0ce48a579.tar.gz rust-4e2b096ed6c8a1400624a54f6c4fd0c0ce48a579.zip | |
Auto merge of #137930 - nnethercote:use-Wunused-crate-dependencies, r=jieyouxu,Nadrieril
Use `Wunused-crate-dependencies` for the compiler An implementation of https://github.com/rust-lang/compiler-team/issues/844. r? `@jieyouxu`
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/src/core/builder/cargo.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/builder/cargo.rs b/src/bootstrap/src/core/builder/cargo.rs index efb1b8b25b7..a96ccdd12c2 100644 --- a/src/bootstrap/src/core/builder/cargo.rs +++ b/src/bootstrap/src/core/builder/cargo.rs @@ -1073,6 +1073,7 @@ impl Builder<'_> { lint_flags.push("-Wkeyword_idents_2024"); lint_flags.push("-Wunreachable_pub"); lint_flags.push("-Wunsafe_op_in_unsafe_fn"); + lint_flags.push("-Wunused_crate_dependencies"); } // This does not use RUSTFLAGS for two reasons. |
