diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2025-01-25 23:26:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-25 23:26:58 -0500 |
| commit | dc202df0ed8caba1c7caffcfc8cb70ba7f4b94b4 (patch) | |
| tree | 00e51a5589992f47171c84fb642ab6778c197f58 /compiler/rustc_metadata/src/errors.rs | |
| parent | 2f0ad2a71e4a4528bb80bcb24bf8fa4e50cb87c2 (diff) | |
| parent | 49c3aaabaaf383da35d5544817feb54d1800832c (diff) | |
| download | rust-dc202df0ed8caba1c7caffcfc8cb70ba7f4b94b4.tar.gz rust-dc202df0ed8caba1c7caffcfc8cb70ba7f4b94b4.zip | |
Rollup merge of #133951 - bjorn3:wasm_c_abi_lint_hard_error, r=workingjubilee
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. The lint was made deny-by-default in https://github.com/rust-lang/rust/pull/129534 3 months ago. This still keeps the `-Zwasm-c-abi` flag set to `legacy` by default. It will be flipped in a future PR. cc https://github.com/rust-lang/rust/issues/122532
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, +} |
