File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/rustc_mir_transform/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ fn find_self_assignments<'tcx>(
387
387
continue ;
388
388
} ;
389
389
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.
391
391
let is_indirect = checked_places
392
392
. get ( dest. as_ref ( ) )
393
393
. map_or ( false , |( _, projections) | is_indirect ( projections) ) ;
@@ -418,7 +418,7 @@ fn find_self_assignments<'tcx>(
418
418
continue ;
419
419
}
420
420
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.
422
422
let is_indirect = checked_places
423
423
. get ( first_place. as_ref ( ) )
424
424
. map_or ( false , |( _, projections) | is_indirect ( projections) ) ;
@@ -1162,7 +1162,7 @@ impl<'tcx> Visitor<'tcx> for TransferFunction<'_, 'tcx> {
1162
1162
}
1163
1163
1164
1164
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
1166
1166
// them as live upon yield and return.
1167
1167
match terminator. kind {
1168
1168
TerminatorKind :: Return
You can’t perform that action at this time.
0 commit comments