-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rust nightly errors with doesn't have an adapter listed #1929
Comments
Same exact error here. Seems that even the hashes match up. Would greatly appreciate some recommendation on how to debug this. I am on a slightly newer nightly version. EDIT: One other thing that I tested is that this issue doesn't seem to exist in
|
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 rustwasm#1929
Thanks for the report! The bad news is that this was a breakage caused by a behavior change in upstream Rust, but the good news is that our internal test suite caught it and I just was on break and wasn't around to fix it! I've posted a fix for this at #1942 |
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
Hope you had a wonderful break! Thanks for the fix. I really like wasm-bindgen. |
Without having a full reproducer at hand, my colleague observed he was also using rust nightly and a command like anybody else? |
With rust nightly, I'm getting one of these two errors:
I'm building with
wasm-pack build --target web
.rustup default nightly
nightly-x86_64-apple-darwin unchanged - rustc 1.42.0-nightly (9b98af84c 2019-12-22)
It is working fine on rust stable.
The text was updated successfully, but these errors were encountered: