diff options
| author | Ralf Jung <post@ralfj.de> | 2025-03-17 22:59:56 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-03-25 08:22:35 +0100 |
| commit | 072ccce553dd83ebfdf0aaf99eb24f65133c368b (patch) | |
| tree | af93c57ceb3717b0ded53c8a4fc7d9e4695e5bba /compiler/rustc_codegen_ssa/src | |
| parent | c961d123d2df8d9fec6d997a6725b88eabe8d5de (diff) | |
| download | rust-072ccce553dd83ebfdf0aaf99eb24f65133c368b.tar.gz rust-072ccce553dd83ebfdf0aaf99eb24f65133c368b.zip | |
make -Zwasm-c-abi=legacy suppress the lint
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/mir/naked_asm.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/naked_asm.rs b/compiler/rustc_codegen_ssa/src/mir/naked_asm.rs index bc9cde1b2a1..3a6b1f8d4ef 100644 --- a/compiler/rustc_codegen_ssa/src/mir/naked_asm.rs +++ b/compiler/rustc_codegen_ssa/src/mir/naked_asm.rs @@ -332,7 +332,7 @@ fn wasm_functype<'tcx>(tcx: TyCtxt<'tcx>, fn_abi: &FnAbi<'tcx, Ty<'tcx>>, def_id // please also add `wasm32-unknown-unknown` back in `tests/assembly/wasm32-naked-fn.rs` // basically the commit introducing this comment should be reverted if let PassMode::Pair { .. } = fn_abi.ret.mode { - let _ = WasmCAbi::Legacy; + let _ = WasmCAbi::Legacy { with_lint: true }; span_bug!( tcx.def_span(def_id), "cannot return a pair (the wasm32-unknown-unknown ABI is broken, see https://github.com/rust-lang/rust/issues/115666" @@ -384,7 +384,7 @@ fn wasm_type<'tcx>( BackendRepr::SimdVector { .. } => "v128", BackendRepr::Memory { .. } => { // FIXME: remove this branch once the wasm32-unknown-unknown ABI is fixed - let _ = WasmCAbi::Legacy; + let _ = WasmCAbi::Legacy { with_lint: true }; span_bug!( tcx.def_span(def_id), "cannot use memory args (the wasm32-unknown-unknown ABI is broken, see https://github.com/rust-lang/rust/issues/115666" |
