ICE: compiling binary against lib with feature(generic_const_exprs)
#88882
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I am finding an ICE when splitting a single binary with
#![feature(generic_const_exprs)]
into a binary plus a library crate that implements the structs and traits. This only occurs when I fail to add#![feature(generic_const_exprs)]
to the binary crate as well. (Am I using the terminology crate correctly? I am still new to the whole rust environment...)I think it is reasonable to expect the feature to be marked in the binary as well, but I would not expect an ICE when it is left out.
Code
This code compiles correctly as a standalone binary:
Now I split this into a library crate
mylib
and a binary depending on it, but fail to include#![feature(generic_const_exprs)]
in the binary:The binary then fails to compile with the ICE trace given below.
Meta
rustc --version --verbose
:Error output
The text was updated successfully, but these errors were encountered: