Function rustc_typeck::check::diagnostic_only_typeck
source · 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.