@@ -1048,8 +1048,8 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
10481048 // | +------------|outer_scope cache|--+ |
10491049 // +------------------------------|middle_scope cache|------+
10501050 //
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:
10531053 //
10541054 // +------------------------------------------------------------+
10551055 // | +----------------------------------+ |
@@ -1061,11 +1061,11 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
10611061 // +----=----------------|invalid middle_scope cache|-----------+
10621062 //
10631063 // 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 )
10651065 // scope, the old, cached blocks, without `drop(new)` will get used, producing the
10661066 // wrong results.
10671067 //
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 ,
10691069 // invalidating caches of each scope visited. This way bare minimum of the
10701070 // caches gets invalidated. i.e., if a new drop is added into the middle scope, the
10711071 // cache of outer scope stays intact.
0 commit comments