diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-12-06 08:52:05 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-01-23 10:22:23 +0000 |
| commit | 4d1c16c09c75b6e44a295fc40ad11bb6ec95dec7 (patch) | |
| tree | 93d9621e78ed599613db8b766a3fd03b9660357c /compiler/rustc_metadata/src/errors.rs | |
| parent | cf577f34c47937ccb9983186eca5f8719da585f4 (diff) | |
| download | rust-4d1c16c09c75b6e44a295fc40ad11bb6ec95dec7.tar.gz rust-4d1c16c09c75b6e44a295fc40ad11bb6ec95dec7.zip | |
Make the wasm_c_abi future compat warning a hard error
This is the next step in getting rid of the broken C abi for wasm32-unknown-unknown.
Diffstat (limited to 'compiler/rustc_metadata/src/errors.rs')
| -rw-r--r-- | compiler/rustc_metadata/src/errors.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_metadata/src/errors.rs b/compiler/rustc_metadata/src/errors.rs index b6c5619ec18..cefc6498f68 100644 --- a/compiler/rustc_metadata/src/errors.rs +++ b/compiler/rustc_metadata/src/errors.rs @@ -732,3 +732,10 @@ pub struct ImportNameTypeRaw { #[primary_span] pub span: Span, } + +#[derive(Diagnostic)] +#[diag(metadata_wasm_c_abi)] +pub(crate) struct WasmCAbi { + #[primary_span] + pub span: Span, +} |
