Skip to content

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

Closed

Description

@Aaron1011

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

Activity

  1. added
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    on Jul 15, 2022
  2. added a commit that references this issue on Jul 15, 2022
    ef8e322
  3. added a commit that references this issue on Jul 15, 2022
    8c1cc82
  4. vivi90 commented on Jul 16, 2022

    @vivi90

    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.
  5. added and removed
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    regression-untriagedUntriaged performance or correctness regression.
    on Jul 19, 2022
  6. added
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    on Jul 19, 2022
  7. removed
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    on Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions