Skip to content

cargo 1.89.0 can't compile the version of metatensor featomic requests by the camakelists.txt #400

@MilitaoLucas

Description

@MilitaoLucas

Basically the title. I get:

error: implicit autoref creates a reference to the dereference of a raw pointer
   --> src/c_api/blocks.rs:276:17
    |
276 |         *data = (*block).values.raw_copy();
    |                 ^^-----^^^^^^^^
    |                   |
    |                   this raw pointer has type `*mut mts_block_t`
    |
    = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements
    = note: references are created through calls to explicit `Deref(Mut)::deref(_mut)` implementations
    = note: `#[deny(dangerous_implicit_autorefs)]` on by default
help: try using a raw pointer method instead; or if this reference is intentional, make it explicit
    |
276 |         *data = (&(*block)).values.raw_copy();

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