@@ -83,7 +83,7 @@ pub enum RegionResolutionError<'tcx> {
83
83
) ,
84
84
85
85
/// Indicates a `'b: 'a` constraint where `'a` is in a universe that
86
- /// cannot name the placeholder `'b`
86
+ /// cannot name the placeholder `'b`.
87
87
UpperBoundUniverseConflict (
88
88
RegionVid ,
89
89
RegionVariableOrigin ,
@@ -449,7 +449,7 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
449
449
return true ;
450
450
}
451
451
452
- // If both a and b are free, consult the declared
452
+ // If both `a` and `b` are free, consult the declared
453
453
// relationships. Note that this can be more precise than the
454
454
// `lub` relationship defined below, since sometimes the "lub"
455
455
// is actually the `postdom_upper_bound` (see
@@ -460,7 +460,7 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
460
460
}
461
461
462
462
// 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` .
464
464
self . lub_concrete_regions ( a, b) == b
465
465
}
466
466
@@ -491,7 +491,7 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
491
491
}
492
492
493
493
( & ReStatic , _) | ( _, & ReStatic ) => {
494
- // nothing lives longer than static
494
+ // nothing lives longer than `' static`
495
495
self . tcx ( ) . lifetimes . re_static
496
496
}
497
497
@@ -501,14 +501,14 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
501
501
| ( r @ ReFree ( _) , & ReEmpty ( _) )
502
502
| ( & ReEmpty ( _) , r @ ReScope ( _) )
503
503
| ( 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.
506
506
r
507
507
}
508
508
509
509
( & 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.
512
512
let ui = a_ui. min ( b_ui) ;
513
513
self . tcx ( ) . mk_region ( ReEmpty ( ui) )
514
514
}
0 commit comments