@@ -83,7 +83,7 @@ pub enum RegionResolutionError<'tcx> {
8383 ) ,
8484
8585 /// Indicates a `'b: 'a` constraint where `'a` is in a universe that
86- /// cannot name the placeholder `'b`
86+ /// cannot name the placeholder `'b`.
8787 UpperBoundUniverseConflict (
8888 RegionVid ,
8989 RegionVariableOrigin ,
@@ -449,7 +449,7 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
449449 return true ;
450450 }
451451
452- // If both a and b are free, consult the declared
452+ // If both `a` and `b` are free, consult the declared
453453 // relationships. Note that this can be more precise than the
454454 // `lub` relationship defined below, since sometimes the "lub"
455455 // is actually the `postdom_upper_bound` (see
@@ -460,7 +460,7 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
460460 }
461461
462462 // For other cases, leverage the LUB code to find the LUB and
463- // check if it is equal to b .
463+ // check if it is equal to `b` .
464464 self . lub_concrete_regions ( a, b) == b
465465 }
466466
@@ -491,7 +491,7 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
491491 }
492492
493493 ( & ReStatic , _) | ( _, & ReStatic ) => {
494- // nothing lives longer than static
494+ // nothing lives longer than `' static`
495495 self . tcx ( ) . lifetimes . re_static
496496 }
497497
@@ -501,14 +501,14 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
501501 | ( r @ ReFree ( _) , & ReEmpty ( _) )
502502 | ( & ReEmpty ( _) , r @ ReScope ( _) )
503503 | ( r @ ReScope ( _) , & ReEmpty ( _) ) => {
504- // all empty regions are less than early-bound, free,
505- // and scope regions
504+ // All empty regions are less than early-bound, free,
505+ // and scope regions.
506506 r
507507 }
508508
509509 ( & ReEmpty ( a_ui) , & ReEmpty ( b_ui) ) => {
510- // empty regions are ordered according to the universe
511- // they are associated with
510+ // Empty regions are ordered according to the universe
511+ // they are associated with.
512512 let ui = a_ui. min ( b_ui) ;
513513 self . tcx ( ) . mk_region ( ReEmpty ( ui) )
514514 }
0 commit comments