@@ -67,7 +67,7 @@ enum LocationExtended {
67
67
#[ derive( Debug ) ]
68
68
struct SsaLocals {
69
69
dominators : Dominators < BasicBlock > ,
70
- /// Assignments to each local. This defines whether the local is SSA.
70
+ /// Assignments to each local. This defines whether the local is SSA.
71
71
assignments : IndexVec < Local , Set1 < LocationExtended > > ,
72
72
/// We visit the body in reverse postorder, to ensure each local is assigned before it is used.
73
73
/// We remember the order in which we saw the assignments to compute the SSA values in a single
@@ -157,7 +157,7 @@ impl<'tcx> Visitor<'tcx> for SsaLocals {
157
157
/// _d => _a // transitively through _c
158
158
///
159
159
/// This function also returns whether all the `move?` in the pattern are `move` and not copies.
160
- /// A local which is in the bitset can be replaced by `move _a`. Otherwise, it must be
160
+ /// A local which is in the bitset can be replaced by `move _a`. Otherwise, it must be
161
161
/// replaced by `copy _a`, as we cannot move multiple times from `_a`.
162
162
///
163
163
/// If an operand copies `_c`, it must happen before the assignment `_d = _c`, otherwise it is UB.
@@ -221,7 +221,7 @@ fn compute_copy_classes(
221
221
fn meet_copy_equivalence ( copies : & IndexVec < Local , Local > , property : & mut BitSet < Local > ) {
222
222
// Consolidate to have a local iff all its copies are.
223
223
//
224
- // `copies` defines equivalence classes between locals. The `local`s that recursively
224
+ // `copies` defines equivalence classes between locals. The `local`s that recursively
225
225
// move/copy the same local all have the same `head`.
226
226
for ( local, & head) in copies. iter_enumerated ( ) {
227
227
// If any copy does not have `property`, then the head is not.
0 commit comments