Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upICE when trying to Add a Vec and `vec![]` on 1.17 nightly #40610
Comments
TimNN
added
I-ICE
regression-from-stable-to-nightly
T-compiler
labels
Mar 17, 2017
This comment has been minimized.
This comment has been minimized.
|
Simplified: fn f(_: &[f32]) {}
fn r() {
() + f(&[1.0]);
}Turning on the debug log just for
Something's wrong with CoerceUnsized? Besides |
arielb1
added
regression-from-stable-to-beta
and removed
regression-from-stable-to-nightly
labels
Mar 19, 2017
brson
added
the
P-high
label
Mar 23, 2017
brson
assigned
eddyb
Mar 23, 2017
eddyb
referenced this issue
Mar 27, 2017
Closed
Repeated coercion ICE for an erroring indexing expression since 1.9. #40861
This comment has been minimized.
This comment has been minimized.
|
The As for indexing, that looks like a regression between 1.8 and 1.9 - I've opened #40861 for it. |
eddyb
referenced this issue
Mar 27, 2017
Merged
Avoid type-checking addition and indexing twice. #40863
bors
added a commit
that referenced
this issue
Apr 6, 2017
bors
closed this
in
#40863
Apr 6, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kennytm commentedMar 17, 2017
•
edited
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: