Skip to content

Double ICE with adt_const_params, generic_const_exprs, and incremental! #89168

Closed
@workingjubilee

Description

@workingjubilee

I got this with what looks like a double ICE!


thread 'rustc' panicked at 'attempted to read from stolen value', /rustc/51e514c0fb4f9afcaae3b02dd9ccb93e15b30ef8\compiler\rustc_data_structures\src\steal.rs:37:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

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.57.0-nightly (51e514c0f 2021-09-12) running on x86_64-pc-windows-msvc

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type lib

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
thread 'rustc' panicked at 'attempted to read from stolen value', /rustc/51e514c0fb4f9afcaae3b02dd9ccb93e15b30ef8\compiler\rustc_data_structures\src\steal.rs:37:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

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.57.0-nightly (51e514c0f 2021-09-12) running on x86_64-pc-windows-msvc

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [thir_abstract_const_of_const_arg] building an abstract representation for the const argument core_simd::to_bytes::<impl at crates\core_simd\src\to_bytes.rs:3:9: 19:10>::from_ne_bytes::{constant#0}
#1 [try_unify_abstract_consts] trying to unify the generic constants core_simd::to_bytes::<impl at crates\core_simd\src\to_bytes.rs:3:9: 19:10>::from_ne_bytes::{constant#0} and core_simd::to_bytes::<impl at crates\core_simd\src\to_bytes.rs:3:9: 19:10>::{constant#0}
end of query stack
#0 [thir_abstract_const_of_const_arg] building an abstract representation for the const argument core_simd::to_bytes::<impl at crates\core_simd\src\to_bytes.rs:3:9: 19:10>::from_ne_bytes::{constant#0}
#1 [try_unify_abstract_consts] trying to unify the generic constants core_simd::to_bytes::<impl at crates\core_simd\src\to_bytes.rs:3:9: 19:10>::from_ne_bytes::{constant#0} and core_simd::to_bytes::<impl at crates\core_simd\src\to_bytes.rs:3:9: 19:10>::{constant#0}
end of query stack

Maybe just a messaging bug? But also hilarious.

Not sure if dupe. Appeared on cargo test, reappeared (with less doubling) on reruns, disappeared on cargo clean.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-const-genericsArea: const generics (parameters and arguments)A-incr-compArea: Incremental compilationC-bugCategory: This is a bug.F-adt_const_params`#![feature(adt_const_params)]`F-generic_const_exprs`#![feature(generic_const_exprs)]`I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions