get rid of visit_constant in thir visitor
This commit is contained in:
parent
14e3d038c0
commit
c3491378e3
5 changed files with 27 additions and 24 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue