Set the default BreakTy
to !
This commit is contained in:
parent
df6e87cc85
commit
65cdc21f06
7 changed files with 16 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue