ICE const variables should not be hashed: Var(_#0c)
inside async context on nightly
#104787
Labels
C-bug
Category: This is a bug.
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.
Code
I think the problem here is derived from rustc not knowing the array length. I'm using
futures-concurrency
crate to.await
an array of streams,merge()
returns aMerge<S, const N: usize>
struct, but theN
is not known at this point because we don't limit thearray::from_fn
.this is much like
except that the latter doesn't panic, and gives a helpful error message.
Also, this seems to only occur within an async context.
Meta
rustc --version --verbose
:Error output
Backtrace
Sorry if this isn't a true ICE, the compiler panics, but the usual message "this is an ICE" is not shown
The text was updated successfully, but these errors were encountered: