Skip to content

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

@sanity

Description

@sanity

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions