Function rustc_typeck::hir_ty_to_ty
[−]
[src]
pub fn hir_ty_to_ty<'a, 'tcx>(
tcx: TyCtxt<'a, 'tcx, 'tcx>,
hir_ty: &Ty
) -> Ty<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
A quasi-deprecated helper used in rustdoc and save-analysis to get the type from a HIR node.