super_ty on MutVisitor is empty so avoid the call
This commit is contained in:
parent
e413dc36a8
commit
5de9cb0703
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user