1
Fork 0

Set the default BreakTy to !

This commit is contained in:
LeSeulArtichaut 2020-11-14 21:46:39 +01:00
parent df6e87cc85
commit 65cdc21f06
7 changed files with 16 additions and 1 deletions

View file

@ -318,6 +318,8 @@ struct HasUsedGenericParams<'a> {
}
impl<'a, 'tcx> TypeVisitor<'tcx> for HasUsedGenericParams<'a> {
type BreakTy = ();
fn visit_const(&mut self, c: &'tcx Const<'tcx>) -> ControlFlow<Self::BreakTy> {
debug!("visit_const: c={:?}", c);
if !c.has_param_types_or_consts() {