Basic lint detecting closure-returning-async-block
This commit is contained in:
parent
6f3ad0a40b
commit
d526adad25
3 changed files with 116 additions and 0 deletions
|
@ -41,6 +41,7 @@
|
|||
#![feature(trait_upcasting)]
|
||||
// tidy-alphabetical-end
|
||||
|
||||
mod async_closures;
|
||||
mod async_fn_in_trait;
|
||||
pub mod builtin;
|
||||
mod context;
|
||||
|
@ -86,6 +87,7 @@ use rustc_hir::def_id::LocalModDefId;
|
|||
use rustc_middle::query::Providers;
|
||||
use rustc_middle::ty::TyCtxt;
|
||||
|
||||
use async_closures::AsyncClosureUsage;
|
||||
use async_fn_in_trait::AsyncFnInTrait;
|
||||
use builtin::*;
|
||||
use deref_into_dyn_supertrait::*;
|
||||
|
@ -227,6 +229,7 @@ late_lint_methods!(
|
|||
MapUnitFn: MapUnitFn,
|
||||
MissingDebugImplementations: MissingDebugImplementations,
|
||||
MissingDoc: MissingDoc,
|
||||
AsyncClosureUsage: AsyncClosureUsage,
|
||||
AsyncFnInTrait: AsyncFnInTrait,
|
||||
NonLocalDefinitions: NonLocalDefinitions::default(),
|
||||
ImplTraitOvercaptures: ImplTraitOvercaptures,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue