diff options
| author | bors <bors@rust-lang.org> | 2025-07-03 13:55:05 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-07-03 13:55:05 +0000 |
| commit | a413f77285c0ab551cf58db729e054f43150dd50 (patch) | |
| tree | b5b747e109241ded6aba31131fd479f374a9e737 /compiler/rustc_codegen_ssa/src/errors.rs | |
| parent | 9e64506923cb0f18c2bb2b934edecff525774acc (diff) | |
| parent | f85283b0d47c9589e7f826ab95fdb521e93e98f0 (diff) | |
| download | rust-a413f77285c0ab551cf58db729e054f43150dd50.tar.gz rust-a413f77285c0ab551cf58db729e054f43150dd50.zip | |
Auto merge of #143363 - jdonszelmann:rollup-7cv1kql, r=jdonszelmann
Rollup of 6 pull requests Successful merges: - rust-lang/rust#134006 (setup typos check in CI) - rust-lang/rust#142876 (Port `#[target_feature]` to new attribute parsing infrastructure) - rust-lang/rust#143038 (avoid suggesting traits from private dependencies) - rust-lang/rust#143083 (Fix rustdoc not correctly showing attributes on re-exports) - rust-lang/rust#143283 (document optional jobs) - rust-lang/rust#143329 (minicore: use core's `diagnostic::on_unimplemented` messages) Failed merges: - rust-lang/rust#143237 (Port `#[no_implicit_prelude]` to the new attribute parsing infrastructure) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/errors.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/errors.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/errors.rs b/compiler/rustc_codegen_ssa/src/errors.rs index 1950a35b364..086c069745c 100644 --- a/compiler/rustc_codegen_ssa/src/errors.rs +++ b/compiler/rustc_codegen_ssa/src/errors.rs @@ -1292,3 +1292,14 @@ pub(crate) struct NoMangleNameless { pub span: Span, pub definition: String, } + +#[derive(Diagnostic)] +#[diag(codegen_ssa_feature_not_valid)] +pub(crate) struct FeatureNotValid<'a> { + pub feature: &'a str, + #[primary_span] + #[label] + pub span: Span, + #[help] + pub plus_hint: bool, +} |
