diff options
| author | bors <bors@rust-lang.org> | 2023-11-22 07:31:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-22 07:31:13 +0000 |
| commit | 855c6836b7c476385db95a0a95f2e57f5ff32fe1 (patch) | |
| tree | 33f19f3af45e575b49a708469fdfcbc2da7ea58b /compiler/rustc_llvm/llvm-wrapper/Linker.cpp | |
| parent | cc4bb0de204516c2852f70df0f3849e542e2c95e (diff) | |
| parent | 54c122ec0d45799e795f8b2aca38227ce9b05fa5 (diff) | |
| download | rust-855c6836b7c476385db95a0a95f2e57f5ff32fe1.tar.gz rust-855c6836b7c476385db95a0a95f2e57f5ff32fe1.zip | |
Auto merge of #118071 - Urgau:check-cfg-cargo-feature, r=petrochenkov
Remove `feature` from the list of well known check-cfg name This PR removes `feature` from the list of well known check-cfg. This is done for multiple reasons: - Cargo is the source of truth, rustc shouldn't have any knowledge of it - It creates a conflict between Cargo and rustc when there are no features defined. In this case Cargo won't pass any `--check-cfg` for `feature` since no feature will ever be passed, but rustc by having in it's list adds a implicit `cfg(feature, values(any()))` which is completely wrong. Having any cfg `feature` is unexpected not allow any `feature` value. While doing this, I took the opportunity to specialise the diagnostic a bit for the case above. r? `@petrochenkov`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions
