about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src/errors.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-03-17 12:10:43 +0100
committerRalf Jung <post@ralfj.de>2025-03-25 08:22:35 +0100
commitc961d123d2df8d9fec6d997a6725b88eabe8d5de (patch)
tree9b20dd43ddd5c6553d62d8f59c04afc404d54caa /compiler/rustc_monomorphize/src/errors.rs
parentbe73c1f4617c97bce81b2694a767353300a75072 (diff)
downloadrust-c961d123d2df8d9fec6d997a6725b88eabe8d5de.tar.gz
rust-c961d123d2df8d9fec6d997a6725b88eabe8d5de.zip
add FCW to warn about wasm ABI transition
Diffstat (limited to 'compiler/rustc_monomorphize/src/errors.rs')
-rw-r--r--compiler/rustc_monomorphize/src/errors.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/rustc_monomorphize/src/errors.rs b/compiler/rustc_monomorphize/src/errors.rs
index 8dafbbca905..dffa372279f 100644
--- a/compiler/rustc_monomorphize/src/errors.rs
+++ b/compiler/rustc_monomorphize/src/errors.rs
@@ -103,3 +103,12 @@ pub(crate) struct AbiRequiredTargetFeature<'a> {
     /// Whether this is a problem at a call site or at a declaration.
     pub is_call: bool,
 }
+
+#[derive(LintDiagnostic)]
+#[diag(monomorphize_wasm_c_abi_transition)]
+#[help]
+pub(crate) struct WasmCAbiTransition<'a> {
+    pub ty: Ty<'a>,
+    /// Whether this is a problem at a call site or at a declaration.
+    pub is_call: bool,
+}