]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_lint/bad_style.rs
Auto merge of #28841 - jld:const-slice-ice, r=Aatch
[rust.git] / src / librustc_lint / bad_style.rs
index afa736d2220d39b13e9721dd6bcddc3f54ff1734..91d1d398a0e548ea782b2c9c4be8fce78754a76e 100644 (file)
@@ -274,7 +274,7 @@ fn check_lifetime_def(&mut self, cx: &LateContext, t: &hir::LifetimeDef) {
     fn check_pat(&mut self, cx: &LateContext, p: &hir::Pat) {
         if let &hir::PatIdent(_, ref path1, _) = &p.node {
             let def = cx.tcx.def_map.borrow().get(&p.id).map(|d| d.full_def());
-            if let Some(def::DefLocal(_)) = def {
+            if let Some(def::DefLocal(..)) = def {
                 self.check_snake_case(cx, "variable", &path1.node.name.as_str(), Some(p.span));
             }
         }