super_ty on MutVisitor is empty so avoid the call

This commit is contained in:
Santiago Pastorino 2019-10-07 19:36:48 -03:00
parent e413dc36a8
commit 5de9cb0703
No known key found for this signature in database
GPG Key ID: 88C941CDA1D46432

View File

@ -25,7 +25,6 @@ pub fn new(tcx: TyCtxt<'tcx>) -> Self {
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) {