drive-by: Add is_async fn to hir::IsAsync
This commit is contained in:
parent
fd3bfb3551
commit
c4165f3a96
6 changed files with 17 additions and 13 deletions
|
@ -62,7 +62,7 @@ impl<'mir, 'tcx> ConstCx<'mir, 'tcx> {
|
|||
}
|
||||
|
||||
fn is_async(&self) -> bool {
|
||||
self.tcx.asyncness(self.def_id()) == hir::IsAsync::Async
|
||||
self.tcx.asyncness(self.def_id()).is_async()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue