mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-25 14:13:38 +00:00
05740adf6e
[`unused_async`]: do not consider `await` in nested `async` blocks as used Fixes #10800. This PR makes sure that `await` expressions inside of inner `async` blocks don't prevent the lint from triggering. For example ```rs async fn foo() { async { std::future::ready(()).await; } } ``` Even though there *is* a `.await` expression in this function, it's contained in an async block, which means that the enclosing function doesn't need to be `async` too. changelog: [`unused_async`]: do not consider `await` in nested `async` blocks as used |
||
---|---|---|
.. | ||
test_utils | ||
ui | ||
ui-cargo | ||
ui-internal | ||
ui-toml | ||
workspace_test | ||
check-fmt.rs | ||
clippy.toml | ||
compile-test.rs | ||
dogfood.rs | ||
integration.rs | ||
lint_message_convention.rs | ||
missing-test-files.rs | ||
versioncheck.rs | ||
workspace.rs |