Function rustc_hir_analysis::hir_ty_to_ty
source · pub fn hir_ty_to_ty<'tcx>(tcx: TyCtxt<'tcx>, hir_ty: &Ty<'tcx>) -> Ty<'tcx>
Expand description
A quasi-deprecated helper used in rustdoc and clippy to get the type from a HIR node.
pub fn hir_ty_to_ty<'tcx>(tcx: TyCtxt<'tcx>, hir_ty: &Ty<'tcx>) -> Ty<'tcx>
A quasi-deprecated helper used in rustdoc and clippy to get the type from a HIR node.