1
Fork 0
rust/compiler/rustc_codegen_ssa
Nicholas Nethercote beba32cebb 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.
2025-03-08 08:41:09 +11:00
..
src Auto merge of #135695 - Noratrieb:elf-raw-dylib, r=bjorn3 2025-03-04 15:39:44 +00:00
Cargo.toml Specify rust lints for compiler/ crates via Cargo. 2025-03-08 08:41:09 +11:00
messages.ftl improve error message and testing of using an unsigned simd mask 2025-03-01 12:58:22 +01:00
README.md

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.