-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICE caused by non-primitive cast of slices #73886
Comments
Let’s try to find the culprit for this. |
Hey Cleanup Crew ICE-breakers! This bug has been identified as a good cc @AminArria @camelid @chrissimpkins @contrun @DutchGhost @elshize @ethanboxx @h-michael @HallerPatrick @hdhoang @hellow554 @imtsuki @kanru @KarlK90 @LeSeulArtichaut @MAdrianMattocks @matheus-consoli @mental32 @nmccarty @Noah-Kennedy @pard68 @PeytonT @pierreN @Redblueflame @RobbieClarken @RobertoSnap @robjtede @SarthakSingh31 @senden9 @shekohex @sinato @spastorino @turboladen @woshilapin @yerke |
searched nightlies: from nightly-2020-06-19 to nightly-2020-06-27 bisected with cargo-bisect-rustc v0.5.2Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc github --script=./test.sh --end=2020-06-27 @rustbot modify labels: -E-needs-bisection |
Prioritized as |
…-slice-cast, r=estebank typeck: check for infer before type impls trait Fixes rust-lang#73886. This PR checks that the target type of the cast (an error related to which is being reported) does not have types to be inferred before checking if it implements the `From` trait. r? @estebank
…-slice-cast, r=estebank typeck: check for infer before type impls trait Fixes rust-lang#73886. This PR checks that the target type of the cast (an error related to which is being reported) does not have types to be inferred before checking if it implements the `From` trait. r? @estebank
When trying to cast a slice, I encountered an ICE in nightly rust. It works in at least two different nightly versions: rustc 1.46.0-nightly (7750c3d 2020-06-26) and rustc 1.46.0-nightly (0ca7f74 2020-06-29). I haven't tested any other versions. In stable rust (1.44.1), no ICE occurs.
Code
A minimal example to reproduce this is here:
I expected the following result:
Instead, I encountered an ICE.
From the little testing I have done, it seems to require slices for the ICE to occur. Replacing the slices with structs causes the ICE to disappear.
Meta
I got the ICE to work with the following two versions:
rustc --version --verbose
:and
It might work with earlier versions of nightly as well, but I haven't checked this. It does not occur with the latest stable version (1.44.1).
Error output
Backtrace
The text was updated successfully, but these errors were encountered: