pub(crate) fn diagnostic_only_typeck<'tcx>(
tcx: TyCtxt<'tcx>,
def_id: LocalDefId,
) -> &'tcx 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.