about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/errors.rs
diff options
context:
space:
mode:
authorAntoni Boucher <bouanto@zoho.com>2023-03-05 12:31:16 -0500
committerAntoni Boucher <bouanto@zoho.com>2023-03-05 12:31:16 -0500
commit2c0c25dcc1598cd115838e1e1d74d9f32ffd8dbf (patch)
tree0c3c0884734268656cd2ae248986322d6776fc70 /compiler/rustc_codegen_gcc/src/errors.rs
parentfce70535676f43f21d683d67cd64eea2923f3ef5 (diff)
downloadrust-2c0c25dcc1598cd115838e1e1d74d9f32ffd8dbf.tar.gz
rust-2c0c25dcc1598cd115838e1e1d74d9f32ffd8dbf.zip
Fix for diagnostics
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/errors.rs')
-rw-r--r--compiler/rustc_codegen_gcc/src/errors.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_gcc/src/errors.rs b/compiler/rustc_codegen_gcc/src/errors.rs
index 5ea39606c08..9305bd1e043 100644
--- a/compiler/rustc_codegen_gcc/src/errors.rs
+++ b/compiler/rustc_codegen_gcc/src/errors.rs
@@ -227,3 +227,12 @@ pub(crate) struct UnwindingInlineAsm {
 pub(crate) struct InvalidMinimumAlignment {
     pub err: String,
 }
+
+#[derive(Diagnostic)]
+#[diag(codegen_gcc_tied_target_features)]
+#[help]
+pub(crate) struct TiedTargetFeatures {
+    #[primary_span]
+    pub span: Span,
+    pub features: String,
+}