1
Fork 0

get rid of visit_constant in thir visitor

This commit is contained in:
b-naber 2022-04-06 10:12:42 +02:00
parent 14e3d038c0
commit c3491378e3
5 changed files with 27 additions and 24 deletions

View file

@ -376,10 +376,6 @@ impl<'a, 'tcx> AbstractConstBuilder<'a, 'tcx> {
visit::walk_pat(self, pat);
}
}
fn visit_constant(&mut self, ct: mir::ConstantKind<'tcx>) {
self.is_poly |= ct.has_param_types_or_consts();
}
}
let mut is_poly_vis = IsThirPolymorphic { is_poly: false, thir: body };