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 @@ -386,7 +386,7 @@ fn find_self_assignments<'tcx>(
386
386
continue ;
387
387
} ;
388
388
389
- // We ignore indirect self-assignment, because both occurences of `dest` are uses.
389
+ // We ignore indirect self-assignment, because both occurrences of `dest` are uses.
390
390
let is_indirect = checked_places
391
391
. get ( dest. as_ref ( ) )
392
392
. map_or ( false , |( _, projections) | is_indirect ( projections) ) ;
@@ -417,7 +417,7 @@ fn find_self_assignments<'tcx>(
417
417
continue ;
418
418
}
419
419
420
- // We ignore indirect self-assignment, because both occurences of `dest` are uses.
420
+ // We ignore indirect self-assignment, because both occurrences of `dest` are uses.
421
421
let is_indirect = checked_places
422
422
. get ( first_place. as_ref ( ) )
423
423
. map_or ( false , |( _, projections) | is_indirect ( projections) ) ;
@@ -1161,7 +1161,7 @@ impl<'tcx> Visitor<'tcx> for TransferFunction<'_, 'tcx> {
1161
1161
}
1162
1162
1163
1163
fn visit_terminator ( & mut self , terminator : & Terminator < ' tcx > , location : Location ) {
1164
- // By-ref captures could be read by the surrounding environement , so we mark
1164
+ // By-ref captures could be read by the surrounding environment , so we mark
1165
1165
// them as live upon yield and return.
1166
1166
match terminator. kind {
1167
1167
TerminatorKind :: Return
You can’t perform that action at this time.
0 commit comments