mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00

By naming them in `[workspace.lints.rust]` in the top-level `Cargo.toml`, and then making all `compiler/` crates inherit them with `[lints] workspace = true`. (I omitted `rustc_codegen_{cranelift,gcc}`, because they're a bit different.) The advantages of this over the current approach: - It uses a standard Cargo feature, rather than special handling in bootstrap. So, easier to understand, and less likely to get accidentally broken in the future. - It works for proc macro crates. It's a shame it doesn't work for rustc-specific lints, as the comments explain.
28 lines
815 B
TOML
28 lines
815 B
TOML
[package]
|
|
name = "rustc_incremental"
|
|
version = "0.0.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
# tidy-alphabetical-start
|
|
rand = "0.8.4"
|
|
rustc_ast = { path = "../rustc_ast" }
|
|
rustc_data_structures = { path = "../rustc_data_structures" }
|
|
rustc_errors = { path = "../rustc_errors" }
|
|
rustc_fluent_macro = { path = "../rustc_fluent_macro" }
|
|
rustc_fs_util = { path = "../rustc_fs_util" }
|
|
rustc_graphviz = { path = "../rustc_graphviz" }
|
|
rustc_hashes = { path = "../rustc_hashes" }
|
|
rustc_hir = { path = "../rustc_hir" }
|
|
rustc_macros = { path = "../rustc_macros" }
|
|
rustc_middle = { path = "../rustc_middle" }
|
|
rustc_serialize = { path = "../rustc_serialize" }
|
|
rustc_session = { path = "../rustc_session" }
|
|
rustc_span = { path = "../rustc_span" }
|
|
thin-vec = "0.2.12"
|
|
tracing = "0.1"
|
|
# tidy-alphabetical-end
|
|
|
|
[lints]
|
|
workspace = true
|