-
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 on generators + arrays #70905
Comments
Regression in Commits: 1edd389...02046a5 |
This needs bisection @rustbot ping cleanup |
Hey Cleanup Crew ICE-breakers! This bug has been identified as a good cc @AminArria @chrissimpkins @contrun @DutchGhost @elshize @ethanboxx @h-michael @HallerPatrick @hdhoang @hellow554 @imtsuki @jakevossen5 @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 |
I suspect #69981 based on |
Assigning |
Oops, forgot to cc @oli-obk. |
I just tried to repro in our test suite and
passes... This is on unmodified master from 03:00 this morning. |
Oh interesting, this only reproduces with async fn test() {
const C: usize = 4;
foo(&mut [0u8; C]).await;
}
async fn foo(bs: &mut [u8]) {}
fn main() {
test();
} |
found a fix, not sure if that is too ad-hoc though. |
…, r=matthewjasper Normalize MIR locals' types for generator layout computation. fixes rust-lang#70905
Sorry for the vague title.
(Playground)
Relevant errors:
Note that this does not result in an ICE:
Also works with shared references.
The text was updated successfully, but these errors were encountered: