rust/clippy_lints
bors 26e245d2ff Auto merge of #10554 - samueltardieu:redundant-async-block, r=Jarcho
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.
2023-04-05 18:31:32 +00:00
..
src Auto merge of #10554 - samueltardieu:redundant-async-block, r=Jarcho 2023-04-05 18:31:32 +00:00
Cargo.toml Migrate format_args.rs to rustc_ast::FormatArgs 2023-03-28 12:22:22 +00:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.