rustc 1.55.0-nightly (b3d11f95c 2021-07-04)
binary: rustc
commit-hash: b3d11f95cc5dd687fdd185ce91e02ebe40e6f46b
commit-date: 2021-07-04
host: x86_64-unknown-linux-gnu
release: 1.55.0-nightly
LLVM version: 12.0.1
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
--> src/lib.rs:1:12
|
1 | #![feature(const_generics)]
| ^^^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
error: internal compiler error: /rustc/b3d11f95cc5dd687fdd185ce91e02ebe40e6f46b/compiler/rustc_middle/src/ty/consts.rs:195:32: expected bits of (), got Const {
ty: (),
val: Value(
ByRef {
alloc: Allocation {
bytes: [],
relocations: Relocations(
SortedMap {
data: [],
},
),
init_mask: InitMask {
blocks: [],
len: Size {
raw: 0,
},
},
align: Align {
pow2: 0,
},
mutability: Not,
extra: (),
},
offset: Size {
raw: 0,
},
},
),
}
thread 'rustc' panicked at 'Box<dyn Any>', compiler/rustc_errors/src/lib.rs:1006:9
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: rustc 1.55.0-nightly (b3d11f95c 2021-07-04) running on x86_64-unknown-linux-gnu
note: compiler flags: -C embed-bitcode=no -C debuginfo=2 --crate-type lib
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
error: aborting due to previous error; 1 warning emitted
error: could not compile `asdf`
Code
Playground link
Meta
rustc --version --verbose:This ICE is a regression. Bisection implicates #85269.
Error output
Backtrace