diff options
| author | bors <bors@rust-lang.org> | 2024-05-20 20:14:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-20 20:14:09 +0000 |
| commit | b92758a9aef1cef7b79e2b72c3d8ba113e547f89 (patch) | |
| tree | 9734f7e60c99909b42378de46e49a0644c1695b9 /compiler/rustc_codegen_llvm/src/allocator.rs | |
| parent | be71fd477243f253a735bb35e0cd23cc528cf30a (diff) | |
| parent | ccd3e99a1a7acdbb3819c0d607fa93c35985c377 (diff) | |
| download | rust-b92758a9aef1cef7b79e2b72c3d8ba113e547f89.tar.gz rust-b92758a9aef1cef7b79e2b72c3d8ba113e547f89.zip | |
Auto merge of #125219 - Urgau:check-cfg-cargo-config, r=fmease
Update `unexpected_cfgs` lint for Cargo new `check-cfg` config
This PR updates the diagnostics output of the `unexpected_cfgs` lint for Cargo new `check-cfg` config.
It's a simple and cost-less alternative to the build-script `cargo::rustc-check-cfg` instruction.
```toml
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(foo, values("bar"))'] }
```
This PR also adds a Cargo specific section regarding check-cfg and Cargo inside rustc's book (motivation is described inside the file, but mainly check-cfg is a rustc feature not a Cargo one, Cargo only enabled the feature, it does not own it; T-cargo even considers the `check-cfg` lint config to be an implementation detail).
This PR also updates the links to refer to that sub-page when using Cargo from rustc.
As well as updating the lint doc to refer to the check-cfg docs.
~**Not to be merged before https://github.com/rust-lang/cargo/pull/13913 reaches master!**~ (EDIT: merged in https://github.com/rust-lang/rust/pull/125237)
`@rustbot` label +F-check-cfg
r? `@fmease` *(feel free to roll)*
Fixes https://github.com/rust-lang/rust/issues/124800
cc `@epage` `@weihanglo`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/allocator.rs')
0 files changed, 0 insertions, 0 deletions
