@@ -1046,7 +1046,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
1046
1046
// borrow); so don't check if they interfere.
1047
1047
//
1048
1048
// NOTE: *reservations* do conflict with themselves;
1049
- // thus aren't injecting unsoundenss w/ this check.)
1049
+ // thus aren't injecting unsoundness w/ this check.)
1050
1050
( Activation ( _, activating) , _) if activating == borrow_index => {
1051
1051
debug ! (
1052
1052
"check_access_for_conflict place_span: {:?} sd: {:?} rw: {:?} \
@@ -1105,7 +1105,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
1105
1105
) ;
1106
1106
// rust-lang/rust#56254 - This was previously permitted on
1107
1107
// the 2018 edition so we emit it as a warning. We buffer
1108
- // these sepately so that we only emit a warning if borrow
1108
+ // these separately so that we only emit a warning if borrow
1109
1109
// checking was otherwise successful.
1110
1110
this. reservation_warnings
1111
1111
. insert ( bi, ( place_span. 0 , place_span. 1 , location, bk, borrow. clone ( ) ) ) ;
@@ -1586,7 +1586,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
1586
1586
) {
1587
1587
debug ! ( "check_if_reassignment_to_immutable_state({:?})" , local) ;
1588
1588
1589
- // Check if any of the initializiations of `local` have happened yet:
1589
+ // Check if any of the initializations of `local` have happened yet:
1590
1590
if let Some ( init_index) = self . is_local_ever_initialized ( local, flow_state) {
1591
1591
// And, if so, report an error.
1592
1592
let init = & self . move_data . inits [ init_index] ;
0 commit comments