Closed TheIronBorn closed 3 years ago
I came across an ICE in the shuffle macro. Hopefully someone here can find a more minimal example.
error: internal compiler error: /rustc/b3d11f95cc5dd687fdd185ce91e02ebe40e6f46b\compiler\rustc_middle\src\ty\consts.rs:195:32: expected bits of [u32; 2], got Const {
$ rustc --version --verbose rustc 1.55.0-nightly (b3d11f95c 2021-07-04) binary: rustc commit-hash: b3d11f95cc5dd687fdd185ce91e02ebe40e6f46b commit-date: 2021-07-04 host: x86_64-pc-windows-msvc release: 1.55.0-nightly LLVM version: 12.0.1
use packed_simd::{u8x2, shuffle}; pub fn foo(x: u8x2) -> u8x2 { shuffle!(x, [1, 0]) }
Appears to be resolved upstream.
I came across an ICE in the shuffle macro. Hopefully someone here can find a more minimal example.
error: internal compiler error: /rustc/b3d11f95cc5dd687fdd185ce91e02ebe40e6f46b\compiler\rustc_middle\src\ty\consts.rs:195:32: expected bits of [u32; 2], got Const {
click to expand full output of `RUST_BACKTRACE=full cargo build -vv`
``` error: internal compiler error: /rustc/b3d11f95cc5dd687fdd185ce91e02ebe40e6f46b\compiler\rustc_middl e\src\ty\consts.rs:195:32: expected bits of [u32; 2], got Const { ty: [u32; 2], val: Value( ByRef { alloc: Allocation { bytes: [ 1, 0, 0, 0, 0, 0, 0, 0, ], relocations: Relocations( SortedMap { data: [], }, ), init_mask: InitMask { blocks: [ 255, ], len: Size { raw: 8, }, }, align: Align { pow2: 2, }, mutability: Not, extra: (), }, offset: Size { raw: 0, }, }, ), } thread 'rustc' panicked at 'Box