]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_lint/unused.rs
[breaking-change] don't pub export ast::Stmt_ variants
[rust.git] / src / librustc_lint / unused.rs
index bbd714fad06bbbb9b78d2e058e4b19abda063b83..f18b68a5b73d82c20c76dd2b924c63bf2b0a1704 100644 (file)
@@ -365,7 +365,7 @@ fn check_expr(&mut self, cx: &EarlyContext, e: &ast::Expr) {
 
     fn check_stmt(&mut self, cx: &EarlyContext, s: &ast::Stmt) {
         let (value, msg) = match s.node {
-            ast::StmtDecl(ref decl, _) => match decl.node {
+            ast::StmtKind::Decl(ref decl, _) => match decl.node {
                 ast::DeclKind::Local(ref local) => match local.init {
                     Some(ref value) => (value, "assigned value"),
                     None => return