Skip to content

Commit

Permalink
super_ty on MutVisitor is empty so avoid the call
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Oct 18, 2019
1 parent e413dc3 commit 5de9cb0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/librustc_mir/transform/erase_regions.rs
Expand Up @@ -25,7 +25,6 @@ impl EraseRegionsVisitor<'tcx> {
impl MutVisitor<'tcx> for EraseRegionsVisitor<'tcx> {
fn visit_ty(&mut self, ty: &mut Ty<'tcx>, _: TyContext) {
*ty = self.tcx.erase_regions(ty);
self.super_ty(ty);
}

fn visit_region(&mut self, region: &mut ty::Region<'tcx>, _: Location) {
Expand Down

0 comments on commit 5de9cb0

Please sign in to comment.