Skip to content

Commit 3eaad56

Browse files
committed
Fix issues caused during rebasing
1 parent 6123478 commit 3eaad56

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/librustc_mir/transform/check_consts/validation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ impl Visitor<'tcx> for Validator<'_, 'mir, 'tcx> {
342342
| Rvalue::Ref(_, kind @ BorrowKind::Mut { .. }, ref place)
343343
| Rvalue::Ref(_, kind @ BorrowKind::Unique, ref place)
344344
=> {
345-
let ty = place.ty(self.body, self.tcx).ty;
345+
let ty = place.ty(&*self.body, self.tcx).ty;
346346
let is_allowed = match ty.kind {
347347
// Inside a `static mut`, `&mut [...]` is allowed.
348348
ty::Array(..) | ty::Slice(_) if self.const_kind() == ConstKind::StaticMut

src/librustc_mir/transform/promote_consts.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,6 @@ pub fn promote_candidates<'tcx>(
10861086
// FIXME: maybe try to filter this to avoid blowing up
10871087
// memory usage?
10881088
body.source_scopes.clone(),
1089-
body.source_scope_local_data.clone(),
10901089
initial_locals,
10911090
IndexVec::new(),
10921091
0,

0 commit comments

Comments
 (0)