Function rustc_hir_typeck::diagnostic_only_typeck
source · pub(crate) fn diagnostic_only_typeck<'tcx>(
tcx: TyCtxt<'tcx>,
def_id: LocalDefId
) -> &TypeckResults<'tcx>
Expand description
Used only to get TypeckResults
for type inference during error recovery.
Currently only used for type inference of static
s and const
s to avoid type cycle errors.