@@ -1048,8 +1048,8 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
1048
1048
// | +------------|outer_scope cache|--+ |
1049
1049
// +------------------------------|middle_scope cache|------+
1050
1050
//
1051
- // Now, a new, inner-most scope is added along with a new drop into
1052
- // both inner-most and outer-most scopes:
1051
+ // Now, a new, innermost scope is added along with a new drop into
1052
+ // both innermost and outermost scopes:
1053
1053
//
1054
1054
// +------------------------------------------------------------+
1055
1055
// | +----------------------------------+ |
@@ -1061,11 +1061,11 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
1061
1061
// +----=----------------|invalid middle_scope cache|-----------+
1062
1062
//
1063
1063
// If, when adding `drop(new)` we do not invalidate the cached blocks for both
1064
- // outer_scope and middle_scope, then, when building drops for the inner (right-most )
1064
+ // outer_scope and middle_scope, then, when building drops for the inner (rightmost )
1065
1065
// scope, the old, cached blocks, without `drop(new)` will get used, producing the
1066
1066
// wrong results.
1067
1067
//
1068
- // Note that this code iterates scopes from the inner-most to the outer-most ,
1068
+ // Note that this code iterates scopes from the innermost to the outermost ,
1069
1069
// invalidating caches of each scope visited. This way bare minimum of the
1070
1070
// caches gets invalidated. i.e., if a new drop is added into the middle scope, the
1071
1071
// cache of outer scope stays intact.
0 commit comments