Skip to content

Failed to install wasmi_cli: raw mutable pointers are not allowed in statics (Rust 1.77.1) #1091

Closed
@MagicalTux

Description

@MagicalTux

I tried to run cargo install wasmi_cli to test this lib but got the following:

error[E0658]: raw mutable pointers are not allowed in statics
   --> /home/magicaltux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmi-0.33.0/src/engine/executor/cache.rs:273:37
    |
273 |     unsafe { NonNull::new_unchecked(ptr::addr_of_mut!(ZERO_CELL)) }
    |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
    = note: this error originates in the macro `ptr::addr_of_mut` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0658`.
error: could not compile `wasmi` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions