@@ -217,7 +217,7 @@ struct UniversalRegionIndices<'tcx> {
217217
218218 /// Whether we've encountered an error region. If we have, cancel all
219219 /// outlives errors, as they are likely bogus.
220- pub tainted_by_errors : Cell < Option < ErrorGuaranteed > > ,
220+ pub encountered_re_error : Cell < Option < ErrorGuaranteed > > ,
221221}
222222
223223#[ derive( Debug , PartialEq ) ]
@@ -442,8 +442,8 @@ impl<'tcx> UniversalRegions<'tcx> {
442442 self . fr_fn_body
443443 }
444444
445- pub ( crate ) fn tainted_by_errors ( & self ) -> Option < ErrorGuaranteed > {
446- self . indices . tainted_by_errors . get ( )
445+ pub ( crate ) fn encountered_re_error ( & self ) -> Option < ErrorGuaranteed > {
446+ self . indices . encountered_re_error . get ( )
447447 }
448448}
449449
@@ -706,7 +706,7 @@ impl<'cx, 'tcx> UniversalRegionsBuilder<'cx, 'tcx> {
706706 UniversalRegionIndices {
707707 indices : global_mapping. chain ( arg_mapping) . collect ( ) ,
708708 fr_static,
709- tainted_by_errors : Cell :: new ( None ) ,
709+ encountered_re_error : Cell :: new ( None ) ,
710710 }
711711 }
712712
@@ -916,7 +916,7 @@ impl<'tcx> UniversalRegionIndices<'tcx> {
916916 match r. kind ( ) {
917917 ty:: ReVar ( ..) => r. as_var ( ) ,
918918 ty:: ReError ( guar) => {
919- self . tainted_by_errors . set ( Some ( guar) ) ;
919+ self . encountered_re_error . set ( Some ( guar) ) ;
920920 // We use the `'static` `RegionVid` because `ReError` doesn't actually exist in the
921921 // `UniversalRegionIndices`. This is fine because 1) it is a fallback only used if
922922 // errors are being emitted and 2) it leaves the happy path unaffected.
0 commit comments