rust/compiler/rustc_codegen_ssa/src/back
Dylan DPC 493ed7a6af
Rollup merge of #94433 - Urgau:check-cfg-allowness, r=petrochenkov
Improve allowness of the unexpected_cfgs lint

This pull-request improve the allowness (`#[allow(...)]`) of the `unexpected_cfgs` lint.

Before this PR only crate level `#![allow(unexpected_cfgs)]` worked, now with this PR it also work when put around `cfg!` or if it is in a upper level. Making it work ~for the attributes `cfg`, `cfg_attr`, ...~ for the same level is awkward as the current code is design to give "Some parent node that is close to this macro call" (cf. https://doc.rust-lang.org/nightly/nightly-rustc/rustc_expand/base/struct.ExpansionData.html) meaning that allow on the same line as an attribute won't work. I'm note even sure if this would be possible.

Found while working on https://github.com/rust-lang/rust/pull/94298.
r? ````````@petrochenkov````````
2022-03-03 01:09:12 +01:00
..
rpath Remove LibSource 2021-07-05 10:49:07 +02:00
archive.rs Unconditionally update symbols 2022-02-10 18:27:18 +01:00
command.rs Remove unnecessary sigils around Symbol::as_str() calls. 2021-12-15 17:32:14 +11:00
link.rs Rollup merge of #94433 - Urgau:check-cfg-allowness, r=petrochenkov 2022-03-03 01:09:12 +01:00
linker.rs compiler: fix some typos 2022-03-01 20:02:47 +08:00
lto.rs Support -C passes in NewPM 2021-05-08 10:58:08 +02:00
metadata.rs Auto merge of #93816 - bjorn3:rlib_metadata_first, r=nagisa 2022-02-20 11:32:40 +00:00
mod.rs Use the object crate for metadata reading 2021-05-07 18:48:58 +02:00
rpath.rs pass -Wl,-z,origin to set DF_ORIGIN when using rpath 2021-12-17 11:27:14 +00:00
symbol_export.rs Adopt let else in more places 2022-02-19 17:27:43 +01:00
write.rs Querify global_backend_features 2022-03-01 01:57:25 +02:00