1
Fork 0

Move rustc_ty -> rustc_ty_utils

This commit is contained in:
LeSeulArtichaut 2020-11-19 21:32:37 +01:00
parent fe982319aa
commit f59d03038c
11 changed files with 7 additions and 7 deletions

View file

@ -131,7 +131,7 @@ impl<'a, 'tcx> NiceRegionError<'a, 'tcx> {
}
pub(super) fn asyncness(&self, local_def_id: LocalDefId) -> Option<hir::IsAsync> {
// similar to the asyncness fn in rustc_ty::ty
// similar to the asyncness fn in rustc_ty_utils::ty
let hir_id = self.tcx().hir().local_def_id_to_hir_id(local_def_id);
let node = self.tcx().hir().get(hir_id);
let fn_like = rustc_middle::hir::map::blocks::FnLikeNode::from_node(node)?;