mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-15 17:50:51 +00:00
The wasm-bindgen nightly test suite started failing recently and a bisection shows that rust-lang/rust#67363 is the cause of this issue. The problem happening here is that after that Rust PR duplicate imports from the same name/module in different parts of a Rust program may now show up as duplicate imports rather than being coalesced into one import. This was tripping up `wasm-bindgen` which, when translating from the wasm module to wasm-bindgen's IR, is unfortunately very string-based. The fix here was to detect these duplicate imports and map them all to the same item, removing the duplicate imports. Closes #1929