From ecbc6610302c4269f3e3e903022d8a84d5537e59 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Tue, 26 Jan 2021 11:09:09 +0100 Subject: [PATCH] Revert "Fix abi for wasm-bindgen" This reverts commit 4d2766e3524129f0d7ec6ad34c4045150ad4f978. --- compiler/rustc_middle/src/ty/layout.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/compiler/rustc_middle/src/ty/layout.rs b/compiler/rustc_middle/src/ty/layout.rs index a6b7b3932136..ef467ed65145 100644 --- a/compiler/rustc_middle/src/ty/layout.rs +++ b/compiler/rustc_middle/src/ty/layout.rs @@ -2752,14 +2752,6 @@ where attrs }); - if target.arch == "wasm32" && target.os == "unknown" { - // wasm-bindgen depends on ABI details and is incompatible with the - // correct C ABI, so this is being kept around until wasm-bindgen - // can be fixed to work with the correct ABI. See #63649 for further - // discussion. - arg.mode = PassMode::Direct(ArgAttributes::new()); - } - if arg.layout.is_zst() { // For some forsaken reason, x86_64-pc-windows-gnu // doesn't ignore zero-sized struct arguments.