Skip to content

warning: this function definition involves an argument of type () which is affected by the wasm ABI transition #3985

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

Closed
sanity opened this issue Apr 13, 2025 · 1 comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file

Comments

@sanity
Copy link

sanity commented Apr 13, 2025

I started seeing this quite recently with dioxus 0.6.3 - it appears to be a problem with a dependency rather than in my code.

  71.394s  INFO  warning: this function definition involves an argument of type `()` which is affected by the wasm ABI transition
   --> /home/ian/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wasm-bindgen-0.2.100/src/closure.rs:749:1
    |
749 | / doit! {
750 | |     ()
751 | |     (A a1 a2 a3 a4)
752 | |     (A a1 a2 a3 a4 B b1 b2 b3 b4)
...   |
758 | |     (A a1 a2 a3 a4 B b1 b2 b3 b4 C c1 c2 c3 c4 D d1 d2 d3 d4 E e1 e2 e3 e4 F f1 f2 f3 f4 G g1 g2 g3 g4 H h1 h2 h3 h4)
759 | | }
    | |_^
    |
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #138762 <https://github.com/rust-lang/rust/issues/138762>
    = help: the "C" ABI Rust uses on wasm32-unknown-unknown will change to align with the standard "C" ABI for this target
    = note: `#[warn(wasm_c_abi)]` on by default
    = note: this warning originates in the macro `doit` (in Nightly builds, run with -Z macro-backtrace for more info)
@sanity sanity added the bug Something isn't working label Apr 13, 2025
@ealmloff
Copy link
Member

This looks like an issue with wasm-bindgen, not dioxus itself. From rustwasm/wasm-bindgen#3454 (comment), it sounds like the warning in wasm-bindgen is a false positive which will be fixed by rust-lang/rust#139498

@ealmloff ealmloff closed this as not planned Won't fix, can't repro, duplicate, stale Apr 14, 2025
@ealmloff ealmloff added the dependencies Pull requests that update a dependency file label Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants