about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src/errors.rs
diff options
context:
space:
mode:
authorLuca Versari <veluca93@gmail.com>2024-11-10 11:36:50 +0100
committerLuca Versari <veluca93@gmail.com>2024-11-12 22:34:31 +0100
commit295cffc4b4042edbbd24e1a2aa28ef84ffcd38ac (patch)
tree2bacdbd9172a8b197d84d7d39e193ff968f16d8d /compiler/rustc_monomorphize/src/errors.rs
parent6503543d11583d1686d4989847b2afbec8d9fdba (diff)
downloadrust-295cffc4b4042edbbd24e1a2aa28ef84ffcd38ac.tar.gz
rust-295cffc4b4042edbbd24e1a2aa28ef84ffcd38ac.zip
ABI checks: add support for tier2 arches
See #131800 for the data collection behind this change.

Also adds a test that exercise the "empty list of features" path.
Diffstat (limited to 'compiler/rustc_monomorphize/src/errors.rs')
-rw-r--r--compiler/rustc_monomorphize/src/errors.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/compiler/rustc_monomorphize/src/errors.rs b/compiler/rustc_monomorphize/src/errors.rs
index 5048a8d5d99..02865cad302 100644
--- a/compiler/rustc_monomorphize/src/errors.rs
+++ b/compiler/rustc_monomorphize/src/errors.rs
@@ -110,3 +110,17 @@ pub(crate) struct AbiErrorDisabledVectorTypeCall<'a> {
     pub span: Span,
     pub required_feature: &'a str,
 }
+
+#[derive(LintDiagnostic)]
+#[diag(monomorphize_abi_error_unsupported_vector_type_def)]
+pub(crate) struct AbiErrorUnsupportedVectorTypeDef {
+    #[label]
+    pub span: Span,
+}
+
+#[derive(LintDiagnostic)]
+#[diag(monomorphize_abi_error_unsupported_vector_type_call)]
+pub(crate) struct AbiErrorUnsupportedVectorTypeCall {
+    #[label]
+    pub span: Span,
+}