diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-06 11:53:30 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-08 08:41:09 +1100 |
| commit | beba32cebb4fb2ef8f02c4fc898a9d31f1b03c61 (patch) | |
| tree | ca3ac2faf7f66cbae78a3b32071dfec19a7436cd /compiler/rustc_baked_icu_data | |
| parent | a8eeb4b53b9ea3b8e67e5c6526fe04ba8e93431f (diff) | |
| download | rust-beba32cebb4fb2ef8f02c4fc898a9d31f1b03c61.tar.gz rust-beba32cebb4fb2ef8f02c4fc898a9d31f1b03c61.zip | |
Specify rust lints for `compiler/` crates via Cargo.
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.
Diffstat (limited to 'compiler/rustc_baked_icu_data')
| -rw-r--r-- | compiler/rustc_baked_icu_data/Cargo.toml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_baked_icu_data/Cargo.toml b/compiler/rustc_baked_icu_data/Cargo.toml index cb0e145386b..1480b59f1e0 100644 --- a/compiler/rustc_baked_icu_data/Cargo.toml +++ b/compiler/rustc_baked_icu_data/Cargo.toml @@ -11,3 +11,6 @@ icu_locid_transform = "1.3.2" icu_provider = { version = "1.2", features = ["sync"] } zerovec = "0.10.0" # tidy-alphabetical-end + +[lints] +workspace = true |
