Fix issues caused during rebasing
This commit is contained in:
parent
6123478f2a
commit
3eaad564d2
@ -342,7 +342,7 @@ impl Visitor<'tcx> for Validator<'_, 'mir, 'tcx> {
|
||||
| Rvalue::Ref(_, kind @ BorrowKind::Mut { .. }, ref place)
|
||||
| Rvalue::Ref(_, kind @ BorrowKind::Unique, ref place)
|
||||
=> {
|
||||
let ty = place.ty(self.body, self.tcx).ty;
|
||||
let ty = place.ty(&*self.body, self.tcx).ty;
|
||||
let is_allowed = match ty.kind {
|
||||
// Inside a `static mut`, `&mut [...]` is allowed.
|
||||
ty::Array(..) | ty::Slice(_) if self.const_kind() == ConstKind::StaticMut
|
||||
|
@ -1086,7 +1086,6 @@ pub fn promote_candidates<'tcx>(
|
||||
// FIXME: maybe try to filter this to avoid blowing up
|
||||
// memory usage?
|
||||
body.source_scopes.clone(),
|
||||
body.source_scope_local_data.clone(),
|
||||
initial_locals,
|
||||
IndexVec::new(),
|
||||
0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user