pub fn lower_ty<'tcx>(tcx: TyCtxt<'tcx>, hir_ty: &Ty<'tcx>) -> Ty<'tcx>Expand description
Lower a hir::Ty to a [Ty].
This function is quasi-deprecated. It can cause ICEs if called inside of a body
(of a function or constant) and especially if it contains inferred types (_).
It’s used in rustdoc and Clippy.