about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorThe Miri Conjob Bot <miri@cron.bot>2024-02-08 05:13:25 +0000
committerThe Miri Conjob Bot <miri@cron.bot>2024-02-08 05:13:25 +0000
commitc232e94bc17913abfcda050bb5616237c1aad11c (patch)
tree692bddaa3b63eb6c2ed17aa959fc215733fd063e /compiler/rustc_codegen_llvm/src/errors.rs
parentcab1cc48ec25f1b2531a271abd2a6c04087dcc61 (diff)
parentd7263d7aada418eb22d0560388379a2e3658e211 (diff)
downloadrust-c232e94bc17913abfcda050bb5616237c1aad11c.tar.gz
rust-c232e94bc17913abfcda050bb5616237c1aad11c.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/errors.rs6
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,
+}