Skip to content

Commit ecbc661

Browse files
committed
Revert "Fix abi for wasm-bindgen"
This reverts commit 4d2766e.
1 parent 36df9c5 commit ecbc661

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

compiler/rustc_middle/src/ty/layout.rs

-8
Original file line numberDiff line numberDiff line change
@@ -2752,14 +2752,6 @@ where
27522752
attrs
27532753
});
27542754

2755-
if target.arch == "wasm32" && target.os == "unknown" {
2756-
// wasm-bindgen depends on ABI details and is incompatible with the
2757-
// correct C ABI, so this is being kept around until wasm-bindgen
2758-
// can be fixed to work with the correct ABI. See #63649 for further
2759-
// discussion.
2760-
arg.mode = PassMode::Direct(ArgAttributes::new());
2761-
}
2762-
27632755
if arg.layout.is_zst() {
27642756
// For some forsaken reason, x86_64-pc-windows-gnu
27652757
// doesn't ignore zero-sized struct arguments.

0 commit comments

Comments
 (0)