]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/check_const.rs
Auto merge of #28846 - Ms2ger:categorization, r=nikomatsakis
[rust.git] / src / librustc / middle / check_const.rs
index 7dff882817e30bbe5f6687a3458da9df37203a00..76fa54317fc1123cd59df792356aac98476b7f57 100644 (file)
@@ -177,7 +177,7 @@ fn fn_like(&mut self,
         if mode == Mode::ConstFn {
             for arg in &fd.inputs {
                 match arg.pat.node {
-                    hir::PatWild(_) => {}
+                    hir::PatWild => {}
                     hir::PatIdent(hir::BindByValue(hir::MutImmutable), _, None) => {}
                     _ => {
                         span_err!(self.tcx.sess, arg.pat.span, E0022,