Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
RustyPyGuy opened this issue Jul 15, 2022 · 0 comments · Fixed by #11
Closed

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

RustyPyGuy opened this issue Jul 15, 2022 · 0 comments · Fixed by #11

Comments

@RustyPyGuy
Copy link

RustyPyGuy commented Jul 15, 2022

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/github.aaakk.us.kg-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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant