Revert "Fix abi for wasm-bindgen"

This reverts commit 4d2766e352.
This commit is contained in:
bjorn3 2021-01-26 11:09:09 +01:00
parent 36df9c55e5
commit ecbc661030

View file

@ -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.