diff options
| author | bors <bors@rust-lang.org> | 2024-02-06 19:38:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-06 19:38:39 +0000 |
| commit | 0d531351e848ad69a03c704d40985c9003847427 (patch) | |
| tree | db91eddf4a9d263a2ed51dd7d388fb52af917875 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 4a2fe4491ea616983a0cf0cbbd145a39768f4e7a (diff) | |
| parent | d98a8a1185e1eec2fbd58f21f161c0292ca40f3a (diff) | |
| download | rust-0d531351e848ad69a03c704d40985c9003847427.tar.gz rust-0d531351e848ad69a03c704d40985c9003847427.zip | |
Auto merge of #120715 - matthiaskrgr:rollup-sp1pp74, r=matthiaskrgr
Rollup of 12 pull requests Successful merges: - #120520 (Some cleanups around diagnostic levels.) - #120575 (Simplify codegen diagnostic handling) - #120597 (Suggest `[tail @ ..]` on `[..tail]` and `[...tail]` where `tail` is unresolved) - #120602 (rustc_monomorphize: fix outdated comment in partition) - #120609 (hir: Stop keeping prefixes for most of `use` list stems) - #120631 (Emit a diagnostic for invalid target options) - #120632 (For E0223, suggest associated functions that are similar to the path) - #120670 (cleanup effect var handling) - #120673 (rustc_metadata: fix typo) - #120683 (miri: fix ICE with symbolic alignment check on extern static) - #120690 (Remove b-naber from the compiler review rotation) - #120713 (Make async closures test use async bound modifier) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/errors.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/errors.rs b/compiler/rustc_codegen_llvm/src/errors.rs index e839d278bea..587c5e9e8d2 100644 --- a/compiler/rustc_codegen_llvm/src/errors.rs +++ b/compiler/rustc_codegen_llvm/src/errors.rs @@ -253,3 +253,9 @@ pub struct MismatchedDataLayout<'a> { pub llvm_target: &'a str, pub llvm_layout: &'a str, } + +#[derive(Diagnostic)] +#[diag(codegen_llvm_invalid_target_feature_prefix)] +pub(crate) struct InvalidTargetFeaturePrefix<'a> { + pub feature: &'a str, +} |
