diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-10-16 14:03:30 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-11-27 17:39:27 +0100 |
| commit | 29b30a9bd291431d4bcae218fc0b1dcb2d35afec (patch) | |
| tree | e7670943ff2d1fb9b41677eded14dfac14b83db0 /compiler/rustc_borrowck | |
| parent | 6d246f0c8d3063fea86abbb65a824362709541ba (diff) | |
| download | rust-29b30a9bd291431d4bcae218fc0b1dcb2d35afec.tar.gz rust-29b30a9bd291431d4bcae218fc0b1dcb2d35afec.zip | |
Visit type in process_projection_elem.
Diffstat (limited to 'compiler/rustc_borrowck')
| -rw-r--r-- | compiler/rustc_borrowck/src/renumber.rs | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/compiler/rustc_borrowck/src/renumber.rs b/compiler/rustc_borrowck/src/renumber.rs index 20567610f65..4b6cab24cdb 100644 --- a/compiler/rustc_borrowck/src/renumber.rs +++ b/compiler/rustc_borrowck/src/renumber.rs @@ -1,7 +1,7 @@ use rustc_index::vec::IndexVec; use rustc_infer::infer::{InferCtxt, NllRegionVariableOrigin}; use rustc_middle::mir::visit::{MutVisitor, TyContext}; -use rustc_middle::mir::{Body, Location, PlaceElem, Promoted}; +use rustc_middle::mir::{Body, Location, Promoted}; use rustc_middle::ty::subst::SubstsRef; use rustc_middle::ty::{self, Ty, TyCtxt, TypeFoldable}; @@ -62,22 +62,6 @@ impl<'a, 'tcx> MutVisitor<'tcx> for NllVisitor<'a, 'tcx> { debug!(?ty); } - fn process_projection_elem( - &mut self, - elem: PlaceElem<'tcx>, - _: Location, - ) -> Option<PlaceElem<'tcx>> { - if let PlaceElem::Field(field, ty) = elem { - let new_ty = self.renumber_regions(ty); - - if new_ty != ty { - return Some(PlaceElem::Field(field, new_ty)); - } - } - - None - } - #[instrument(skip(self), level = "debug")] fn visit_substs(&mut self, substs: &mut SubstsRef<'tcx>, location: Location) { *substs = self.renumber_regions(*substs); |
