Skip to content

error[E0658]: use of unstable library feature 'ptr_from_ref' #60

@y-guyon

Description

@y-guyon

To reproduce:

cargo new jpegxl-rs-test
cd jpegxl-rs-test
cargo add jpegxl-rs -F vendored
cargo build

I get (cargo 1.72.0):

Compiling jpegxl-rs v0.10.3+libjxl-0.10.2
error[E0658]: use of unstable library feature 'ptr_from_ref'
--> /home/yguyon/.cargo/registry/src/index.crates.io-6f17d22bba15001f/jpegxl-rs-0.10.3+libjxl-0.10.2/src/memory.rs:42:21

42 |             opaque: std::ptr::from_ref::<Self>(self).cast_mut().cast(),
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^

= note: see issue #106116 rust-lang/rust#106116 for more information

Is this expected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions