diff options
| author | Ralf Jung <post@ralfj.de> | 2025-03-17 12:10:43 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-03-25 08:22:35 +0100 |
| commit | c961d123d2df8d9fec6d997a6725b88eabe8d5de (patch) | |
| tree | 9b20dd43ddd5c6553d62d8f59c04afc404d54caa /compiler/rustc_monomorphize/src/errors.rs | |
| parent | be73c1f4617c97bce81b2694a767353300a75072 (diff) | |
| download | rust-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.rs | 9 |
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, +} |
