Remove seemingly pointless case -- this customized variant avoided
walking the patterns in a type fn decl, but those patterns are ignored by this visitor anyway.
This commit is contained in:
parent
edcfeb7996
commit
6913ed0f3c
1 changed files with 0 additions and 5 deletions
|
@ -371,11 +371,6 @@ impl<'a, 'tcx> Visitor<'tcx> for CheckItemTypesVisitor<'a, 'tcx> {
|
|||
hir::TyFixedLengthVec(_, ref expr) => {
|
||||
check_const_in_type(self.ccx, &**expr, self.ccx.tcx.types.usize);
|
||||
}
|
||||
hir::TyBareFn(ref function_declaration) => {
|
||||
visit::walk_fn_decl_nopat(self, &function_declaration.decl);
|
||||
walk_list!(self, visit_lifetime_def, &function_declaration.lifetimes);
|
||||
return
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue