Remove special-case for simd_shuffle
intrinsics in promotion
#69493
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-SIMD
Area: SIMD (Single Instruction Multiple Data)
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
S-blocked
Status: Blocked on something else such as an RFC or other implementation work.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
#69280 tried to normalize promotion of arguments that must be const by requiring
#[rustc_args_required_const]
everywhere. Currently, intrinsics beginning with the string "simd_shuffle" automatically get their third argument promoted. However, this broke the latest release of thepacked_simd
crate, which does not define the intrinsics with the requisite attribute (see #69313).Although this is allowed breakage (you can't define intrinsics without the nightly-only
platform_intrinsics
feature), I reverted #69280 for now, since it's just a small cleanup and isn't blocking anything. I opened rust-lang/packed_simd#278 to fixpacked_simd
. Once a version of that crate is released with the fix, we should reapply #69280.The text was updated successfully, but these errors were encountered: