Skip to content

Commit 35590b5

Browse files
committed
Fix typos caused during rebase
1 parent 4de31b2 commit 35590b5

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/librustc_mir/borrow_check/conflict_errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
244244
);
245245
}
246246
let span = if let Some(local) = place.as_local() {
247-
let decl = &self.body.local_decls[local];
247+
let decl = &self.body_cache.local_decls[local];
248248
Some(decl.source_info.span)
249249
} else {
250250
None

src/librustc_mir/borrow_check/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
11521152
// (e.g., `x = ...`) so long as it has never been initialized
11531153
// before (at this point in the flow).
11541154
if let Some(local) = place_span.0.as_local() {
1155-
if let Mutability::Not = self.body+cache.local_decls[local].mutability {
1155+
if let Mutability::Not = self.body_cache.local_decls[local].mutability {
11561156
// check for reassignments to immutable local variables
11571157
self.check_if_reassignment_to_immutable_state(
11581158
location,
@@ -1306,7 +1306,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
13061306
Operand::Move(ref place) | Operand::Copy(ref place) => {
13071307
match place.as_local() {
13081308
Some(local) if !self.body_cache.local_decls[local].is_user_variable() => {
1309-
if self.body.local_decls[local].ty.is_mutable_ptr() {
1309+
if self.body_cache.local_decls[local].ty.is_mutable_ptr() {
13101310
// The variable will be marked as mutable by the borrow.
13111311
return;
13121312
}

src/librustc_mir/transform/const_prop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use rustc::hir::def::DefKind;
88
use rustc::hir::def_id::DefId;
99
use rustc::mir::{
1010
AggregateKind, Constant, Location, Place, PlaceBase, Body, BodyCache, Operand, Local, UnOp,
11-
Rvalue. StatementKind, Statement, LocalKind, TerminatorKind, Terminator, ClearCrossCrate,
11+
Rvalue, StatementKind, Statement, LocalKind, TerminatorKind, Terminator, ClearCrossCrate,
1212
SourceInfo, BinOp, SourceScope, SourceScopeData, LocalDecl, BasicBlock, ReadOnlyBodyCache,
1313
read_only, RETURN_PLACE
1414
};

src/librustc_mir/transform/no_landing_pads.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl<'tcx> NoLandingPads<'tcx> {
1818

1919
impl<'tcx> MirPass<'tcx> for NoLandingPads<'tcx> {
2020
fn run_pass(&self, tcx: TyCtxt<'tcx>, _: MirSource<'tcx>, body_cache: &mut BodyCache<'tcx>) {
21-
no_landing_pads(tcx, body)
21+
no_landing_pads(tcx, body_cache)
2222
}
2323
}
2424

src/librustc_mir/transform/promote_consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ impl<'a, 'tcx> Promoter<'a, 'tcx> {
831831
self.temps[temp] = TempState::PromotedOut;
832832
}
833833

834-
let num_stmts = self.source_cacje[loc.block].statements.len();
834+
let num_stmts = self.source_cache[loc.block].statements.len();
835835
let new_temp = self.promoted_cache.local_decls.push(
836836
LocalDecl::new_temp(self.source_cache.local_decls[temp].ty,
837837
self.source_cache.local_decls[temp].source_info.span));

0 commit comments

Comments
 (0)