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

std::intrinsics::copy_nonoverlapping is marked unstable on the latest nightly #99286

Closed
Aaron1011 opened this issue Jul 15, 2022 · 1 comment · Fixed by #99288
Closed

std::intrinsics::copy_nonoverlapping is marked unstable on the latest nightly #99286

Aaron1011 opened this issue Jul 15, 2022 · 1 comment · Fixed by #99288
Labels
C-bug Category: This is a bug. regression-from-stable-to-nightly Performance or correctness regression from stable to nightly.

Comments

@Aaron1011
Copy link
Member

Code

I tried this code:

use std::intrinsics::copy_nonoverlapping;

I expected to see this happen: Compilation succeeds

Instead, this happened:

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
 --> unstable.rs:1:5
  |
1 | use std::intrinsics::copy_nonoverlapping;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(core_intrinsics)]` to the crate attributes to enable

error: aborting due to previous error; 1 warning emitted

Version it worked on

rustc 1.62.0 (a8314ef7d 2022-06-27)

It most recently worked on:

Version with regression

rustc 1.64.0-nightly (c2f428d2f 2022-07-14)
binary: rustc
commit-hash: c2f428d2f3340a0e7d995f4726223db91b93704c
commit-date: 2022-07-14
host: x86_64-unknown-linux-gnu
release: 1.64.0-nightly
LLVM version: 14.0.6
@Aaron1011 Aaron1011 added C-bug Category: This is a bug. regression-untriaged Untriaged performance or correctness regression. labels Jul 15, 2022
@rustbot rustbot added the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Jul 15, 2022
bors added a commit to rust-lang-ci/rust that referenced this issue Jul 15, 2022
Mark stabilized intrinsics with `rustc_allowed_through_unstable_modules`

Fixes rust-lang#99286

PR rust-lang#95956 accidentally made these intrinsics unstable when
accessed through the unstable path segment 'std::intrinsics'
@vivi90
Copy link

vivi90 commented Jul 16, 2022

Workaround in the meantime

Using the last working version of rustc:

  1. Install via: rustup toolchain install nightly-2022-07-13
  2. Using everytime cargo +nightly-2022-07-13 build.

@bors bors closed this as completed in ef8e322 Jul 16, 2022
@inquisitivecrystal inquisitivecrystal added regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. and removed I-prioritize Issue: Indicates that prioritization has been requested for this issue. regression-untriaged Untriaged performance or correctness regression. labels Jul 19, 2022
@rustbot rustbot added the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Jul 19, 2022
@inquisitivecrystal inquisitivecrystal removed the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. regression-from-stable-to-nightly Performance or correctness regression from stable to nightly.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants