ICE when trying to Add a Vec and vec![]
on 1.17 nightly
#40610
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-high
High priority
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Repro case:
The
<[f32]>::into_vec(Box::new([]))
is expanded fromvec![]
.No ICE on 1.16 stable.
No ICE when trying using
-
,*
,/
etc.No ICE when swapping the two arguments
vec![] + v
.No ICE when using
v + Vec::new()
.No ICE when not using UFCS
v + (Box::new([]) as Box<[f32]>).into_vec();
Error (panic on this line):
Version:
The text was updated successfully, but these errors were encountered: