1
Fork 0

drive-by: Add is_async fn to hir::IsAsync

This commit is contained in:
Michael Goulet 2022-11-19 02:22:24 +00:00
parent fd3bfb3551
commit c4165f3a96
6 changed files with 17 additions and 13 deletions

View file

@ -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()
}
}