rust-lang / futures-rs

Zero-cost asynchronous programming in Rust
https://rust-lang.github.io/futures-rs/
Apache License 2.0
5.38k stars 622 forks source link

Parse rhs of `select!` arms using match-arm rules #2832

Closed dtolnay closed 7 months ago

dtolnay commented 7 months ago

Fixes #2824.

This is a breaking change because, for example, the following program would break.

use futures::{future, select};

fn main() {
    let _ = async {
        select! {
            () = future::ready(()) => {}()
        }
    };
}