Skip to main content

Module async_closures

Module async_closures 

Source

Re-exportsยง

use rustc_hir as hir; ๐Ÿ”’
use rustc_lint_defs::declare_lint; ๐Ÿ”’
use rustc_lint_defs::declare_lint_pass; ๐Ÿ”’
use rustc_macros::Diagnostic; ๐Ÿ”’
use rustc_macros::Subdiagnostic; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use crate::LateContext; ๐Ÿ”’
use crate::LateLintPass; ๐Ÿ”’

Structsยง

AsyncClosureSugg ๐Ÿ”’
AsyncClosureUsage
Lint for potential usages of async closures and async fn trait bounds.
ClosureReturningAsyncBlock ๐Ÿ”’

Staticsยง

CLOSURE_RETURNING_ASYNC_BLOCK
The closure_returning_async_block lint detects cases where users write a closure that returns an async block.