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:
Niko Matsakis 2015-10-31 09:24:30 -04:00
parent edcfeb7996
commit 6913ed0f3c

View file

@ -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
}
_ => {}
}