-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE compiling with futures compat #61986
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Minimized: #![feature(async_await)]
async fn bar() -> Option<()> {
Some(())
}
async fn listen() {
while let Some(_) = bar().await {
String::new();
}
}
fn main() {
listen();
} |
The ICE goes away if you assign |
I believe this will be fixed by #61872 |
This is indeed fixed-- I've opened #62155 with a regression test. |
Add regression test for MIR drop generation in async loops Fixes rust-lang#61986. r? @Centril
Add regression test for MIR drop generation in async loops Fixes rust-lang#61986. r? @Centril
Add regression test for MIR drop generation in async loops Fixes rust-lang#61986. r? @Centril
Add regression test for MIR drop generation in async loops Fixes rust-lang#61986. r? @Centril
Attempting to shim futures-preview Stream to a tokio futures 0.1 Stream results in ICE when done this way. Most minimal example I can give
The text was updated successfully, but these errors were encountered: