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>(
386386 continue ;
387387 } ;
388388
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.
390390 let is_indirect = checked_places
391391 . get ( dest. as_ref ( ) )
392392 . map_or ( false , |( _, projections) | is_indirect ( projections) ) ;
@@ -417,7 +417,7 @@ fn find_self_assignments<'tcx>(
417417 continue ;
418418 }
419419
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.
421421 let is_indirect = checked_places
422422 . get ( first_place. as_ref ( ) )
423423 . map_or ( false , |( _, projections) | is_indirect ( projections) ) ;
@@ -1161,7 +1161,7 @@ impl<'tcx> Visitor<'tcx> for TransferFunction<'_, 'tcx> {
11611161 }
11621162
11631163 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
11651165 // them as live upon yield and return.
11661166 match terminator. kind {
11671167 TerminatorKind :: Return
You can’t perform that action at this time.
0 commit comments