@@ -67,7 +67,7 @@ enum LocationExtended {
6767#[ derive( Debug ) ]
6868struct SsaLocals {
6969 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.
7171 assignments : IndexVec < Local , Set1 < LocationExtended > > ,
7272 /// We visit the body in reverse postorder, to ensure each local is assigned before it is used.
7373 /// 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 {
157157/// _d => _a // transitively through _c
158158///
159159/// 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
161161/// replaced by `copy _a`, as we cannot move multiple times from `_a`.
162162///
163163/// 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(
221221fn meet_copy_equivalence ( copies : & IndexVec < Local , Local > , property : & mut BitSet < Local > ) {
222222 // Consolidate to have a local iff all its copies are.
223223 //
224- // `copies` defines equivalence classes between locals. The `local`s that recursively
224+ // `copies` defines equivalence classes between locals. The `local`s that recursively
225225 // move/copy the same local all have the same `head`.
226226 for ( local, & head) in copies. iter_enumerated ( ) {
227227 // If any copy does not have `property`, then the head is not.
0 commit comments