@@ -69,7 +69,7 @@ scheduled in a [DropTree]. Later, before `in_breakable_scope` exits, the drops
69
69
will be added to the CFG.
70
70
71
71
Panics are handled in a similar fashion, except that the drops are added to the
72
- mir once the rest of the function has finished being lowered. If a terminator
72
+ MIR once the rest of the function has finished being lowered. If a terminator
73
73
can panic, call `diverge_from(block)` with the block containing the terminator
74
74
`block`.
75
75
@@ -284,8 +284,8 @@ impl DropTree {
284
284
blocks : & mut IndexVec < DropIdx , Option < BasicBlock > > ,
285
285
) {
286
286
// StorageDead statements can share blocks with each other and also with
287
- // a Drop terminator. We iterate through the blocks to find which blocks
288
- // need
287
+ // a Drop terminator. We iterate through the drops to find which drops
288
+ // need their own block.
289
289
#[ derive( Clone , Copy ) ]
290
290
enum Block {
291
291
// This drop is unreachable
@@ -294,7 +294,7 @@ impl DropTree {
294
294
// specified index.
295
295
Shares ( DropIdx ) ,
296
296
// This drop has more than one way of being reached, or it is
297
- // branched to from outside the tree, or it's predecessor is a
297
+ // branched to from outside the tree, or its predecessor is a
298
298
// `Value` drop.
299
299
Own ,
300
300
}
@@ -307,7 +307,7 @@ impl DropTree {
307
307
needs_block[ ROOT_NODE ] = Block :: Own ;
308
308
}
309
309
310
- // Sort so that we only need to check the last
310
+ // Sort so that we only need to check the last value.
311
311
let entry_points = & mut self . entry_points ;
312
312
entry_points. sort ( ) ;
313
313
0 commit comments