1
Fork 0

Rework how we emit errors for unresolved object lifetimes

This commit is contained in:
Michael Goulet 2024-08-24 14:55:31 -04:00
parent f167efad2f
commit 147bb17f51
3 changed files with 25 additions and 16 deletions

View file

@ -392,7 +392,7 @@ impl<'tcx> HirTyLowerer<'tcx> for ItemCtxt<'tcx> {
}
fn re_infer(&self, span: Span, reason: RegionInferReason<'_>) -> ty::Region<'tcx> {
if let RegionInferReason::BorrowedObjectLifetimeDefault = reason {
if let RegionInferReason::ObjectLifetimeDefault = reason {
let e = struct_span_code_err!(
self.dcx(),
span,