Skip to content

const simd_extract/insert are no longer usable in latest nightly (2020-01-02) #67847

Closed

Description

@novacrazy

A few months ago #64738 introduced const simd_insert/simd_extract, which I then integrated into my application via a fork of packed_simd.

However, upon upgrading to the latest nightly (rustc 1.42.0-nightly (0a58f5864 2020-01-02)), it was suddenly non-const.

Furthermore, It seems the ability to make it const via rustc_const_unstable is not possible in user applications, making the const versions of this effectively rustc internal-only now, breaking my fork of packed_simd and my application.

Activity

  1. added
    A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)
    C-bugCategory: This is a bug.
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Jan 4, 2020
  2. mati865 commented on Jan 4, 2020

    @mati865
    Member
  3. added
    B-unstableBlocker: Implemented in the nightly compiler and unstable.
    requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.
    and removed
    C-bugCategory: This is a bug.
    on Jan 4, 2020
  4. oli-obk commented on Jan 4, 2020

    @oli-obk
    Contributor

    As mentioned on #64738 you can use stability attributes to get this working again.

    If this requires you to add too many annotations to your crate, you can create a crate that solely consists of the intrinsic declarations and exports them. Then your main crate doesn't need any annotations. I do not think there's anything on the compiler end that we will do to further support using very unstable internals of the standard library.

    If you want to speed up the stabilization of this, @gnzlbg mentioned moving packed_simd into the libstd. Though I do not know what the status, progress or plans for that are

  5. workingjubilee commented on Sep 10, 2020

    @workingjubilee
    Member

    @rustbot modify labels: +A-simd
    Current status of portable SIMD: Coalescing project group.
    EDIT: whoops, wrong link. rust-lang/rfcs#2977

  6. added
    A-SIMDArea: SIMD (Single Instruction Multiple Data)
    on Sep 10, 2020
  7. cyrgani commented on Jul 2, 2025

    @cyrgani
    Contributor

    simd_insert and simd_extract are const again since #137551.

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

    A-SIMDArea: SIMD (Single Instruction Multiple Data)A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)B-unstableBlocker: Implemented in the nightly compiler and unstable.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions