Use -Wunused_crate_dependencies for compiler crates.

It's very useful. There are some false positives involving integration
tests in `rustc_pattern_analysis` and `rustc_serialize`. There is also a
false positive involving `rustc_driver_impl`'s
`rustc_randomized_layouts` feature. And I removed a `rustc_span` mention
in a doc comment in `rustc_log` because it wasn't integral to the
comment but caused a dev-dependency.
This commit is contained in:
Nicholas Nethercote 2025-03-03 18:59:30 +11:00
parent 1aeb99d248
commit 8121958fda
28 changed files with 42 additions and 53 deletions

View file

@ -5,6 +5,8 @@ edition = "2024"
[dependencies]
# tidy-alphabetical-start
rustc_index = { path = "../rustc_index", default-features = false }
rustc_lexer = { path = "../rustc_lexer" }
# tidy-alphabetical-end
[target.'cfg(target_pointer_width = "64")'.dependencies]
rustc_index = { path = "../rustc_index", default-features = false }