Skip to content

Commit a24b76a

Browse files
committed
Typos.
1 parent 5738151 commit a24b76a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_mir_transform/src/liveness.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ fn find_self_assignments<'tcx>(
387387
continue;
388388
};
389389

390-
// We ignore indirect self-assignment, because both occurences of `dest` are uses.
390+
// We ignore indirect self-assignment, because both occurrences of `dest` are uses.
391391
let is_indirect = checked_places
392392
.get(dest.as_ref())
393393
.map_or(false, |(_, projections)| is_indirect(projections));
@@ -418,7 +418,7 @@ fn find_self_assignments<'tcx>(
418418
continue;
419419
}
420420

421-
// We ignore indirect self-assignment, because both occurences of `dest` are uses.
421+
// We ignore indirect self-assignment, because both occurrences of `dest` are uses.
422422
let is_indirect = checked_places
423423
.get(first_place.as_ref())
424424
.map_or(false, |(_, projections)| is_indirect(projections));
@@ -1162,7 +1162,7 @@ impl<'tcx> Visitor<'tcx> for TransferFunction<'_, 'tcx> {
11621162
}
11631163

11641164
fn visit_terminator(&mut self, terminator: &Terminator<'tcx>, location: Location) {
1165-
// By-ref captures could be read by the surrounding environement, so we mark
1165+
// By-ref captures could be read by the surrounding environment, so we mark
11661166
// them as live upon yield and return.
11671167
match terminator.kind {
11681168
TerminatorKind::Return

0 commit comments

Comments
 (0)