mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-26 14:43:24 +00:00
26e245d2ff
Make redundant_async_block a more complete late pass This lets us detect more complex situations: `async { x.await }` is simplified into `x` if: - `x` is an expression without side-effect - or `x` is an `async` block itself In both cases, no part of the `async` expression can be part of a macro expansion. Fixes #10509. Fixes #10525. changelog: [`redundant_async_block`] Do not lint expressions with side effects. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |