ICE with const_generic and integration test #64707
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-metadata
Area: Crate metadata
C-bug
Category: This is a bug.
F-const_generics
`#![feature(const_generics)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Searched a bit, but did not find the same issue. When using const_generics and trying to get an integration test (or benchmark) to run, the compiler ICEs.
I tried this code:
src/lib.rs:
tests/foo.rs:
Cargo.toml:
Commandline:
CARGO_INCREMENTAL=0 cargo test
I expected to see this happen: It should build and the test should run without any problems.
Instead, this happened: The Compiler crashes with the following error:
error: internal compiler error: src/librustc_metadata/decoder.rs:474: entry: id not found: DefIndex(17) in crate rust_ice with number 15
Meta
rustc --version --verbose
:rustc 1.39.0-nightly (1dd1884 2019-09-22)
binary: rustc
commit-hash: 1dd1884
commit-date: 2019-09-22
host: x86_64-unknown-linux-gnu
release: 1.39.0-nightly
LLVM version: 9.0
Backtrace:
The text was updated successfully, but these errors were encountered: