]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_lint/redundant_semicolon.rs
Update expected error output.
[rust.git] / src / librustc_lint / redundant_semicolon.rs
index 7c9df3578b59cd22a168821e94261d6eb8003bb1..0adf1eeb410b02caa36ef22a71a7192676fd7b6f 100644 (file)
@@ -12,8 +12,8 @@
 
 impl EarlyLintPass for RedundantSemicolon {
     fn check_stmt(&mut self, cx: &EarlyContext<'_>, stmt: &Stmt) {
-        if let StmtKind::Semi(expr) = &stmt.node {
-            if let ExprKind::Tup(ref v) = &expr.node {
+        if let StmtKind::Semi(expr) = &stmt.kind {
+            if let ExprKind::Tup(ref v) = &expr.kind {
                 if v.is_empty() {
                     // Strings of excess semicolons are encoded as empty tuple expressions
                     // during the parsing stage, so we check for empty tuple expressions