Skip to content

Commit

Permalink
Revert "Fix abi for wasm-bindgen"
Browse files Browse the repository at this point in the history
This reverts commit 4d2766e.
  • Loading branch information
bjorn3 committed Jan 26, 2021
1 parent 36df9c5 commit ecbc661
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions compiler/rustc_middle/src/ty/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ecbc661

Please sign in to comment.