From 6913ed0f3c42f37b2b46043305ebae2e81e33548 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Sat, 31 Oct 2015 09:24:30 -0400 Subject: [PATCH] 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. --- src/librustc_typeck/check/mod.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs index 5ed6b62e8c3..aceb2fb5349 100644 --- a/src/librustc_typeck/check/mod.rs +++ b/src/librustc_typeck/check/mod.rs @@ -371,11 +371,6 @@ fn visit_ty(&mut self, t: &'tcx hir::Ty) { 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 - } _ => {} } -- 2.44.0