Revert "Use workspace lints for crates in compiler/ #138084"
Revert <https://github.com/rust-lang/rust/pull/138084> to buy time to consider options that avoids breaking downstream usages of cargo on distributed `rustc-src` artifacts, where such cargo invocations fail due to inability to inherit `lints` from workspace root manifest's `workspace.lints` (this is only valid for the source rust-lang/rust workspace, but not really the distributed `rustc-src` artifacts). This breakage was reported in <https://github.com/rust-lang/rust/issues/138304>. This reverts commit48caf81484, reversing changes made toc6662879b2.
This commit is contained in:
parent
2c6a12ec44
commit
063ef18fdc
144 changed files with 90 additions and 252 deletions
|
|
@ -1072,17 +1072,12 @@ impl Builder<'_> {
|
|||
}
|
||||
|
||||
if mode == Mode::Rustc {
|
||||
// NOTE: rustc-specific lints are specified here. Normal rust lints
|
||||
// are specified in the `[workspace.lints.rust]` section in the
|
||||
// top-level `Cargo.toml`. If/when tool lints are supported by
|
||||
// Cargo, these lints can be move to a `[workspace.lints.rustc]`
|
||||
// section in the top-level `Cargo.toml`.
|
||||
//
|
||||
// NOTE: these flags are added to RUSTFLAGS, which is ignored when
|
||||
// compiling proc macro crates such as `rustc_macros`,
|
||||
// unfortunately.
|
||||
rustflags.arg("-Wrustc::internal");
|
||||
rustflags.arg("-Drustc::symbol_intern_string_literal");
|
||||
// FIXME(edition_2024): Change this to `-Wrust_2024_idioms` when all
|
||||
// of the individual lints are satisfied.
|
||||
rustflags.arg("-Wkeyword_idents_2024");
|
||||
rustflags.arg("-Wunsafe_op_in_unsafe_fn");
|
||||
}
|
||||
|
||||
if self.config.rust_frame_pointers {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue