about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2024-03-14 11:25:05 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2024-03-14 12:42:04 +0100
commitda2795fe487832e27eb92f9601877a6eba80adea (patch)
treef0c6ec2ec48427284ba68d18c71d972102c9b80f
parent97f2ade8e647e2842695c0dda30d9c72fb7f7c07 (diff)
downloadrust-da2795fe487832e27eb92f9601877a6eba80adea.tar.gz
rust-da2795fe487832e27eb92f9601877a6eba80adea.zip
Rename `ast::StmtKind::Local` into `ast::StmtKind::Let`
-rw-r--r--clippy_utils/src/ast_utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/ast_utils.rs b/clippy_utils/src/ast_utils.rs
index 3b3939da7b6..3874c1169e4 100644
--- a/clippy_utils/src/ast_utils.rs
+++ b/clippy_utils/src/ast_utils.rs
@@ -267,7 +267,7 @@ pub fn eq_block(l: &Block, r: &Block) -> bool {
 pub fn eq_stmt(l: &Stmt, r: &Stmt) -> bool {
     use StmtKind::*;
     match (&l.kind, &r.kind) {
-        (Local(l), Local(r)) => {
+        (Let(l), Let(r)) => {
             eq_pat(&l.pat, &r.pat)
                 && both(&l.ty, &r.ty, |l, r| eq_ty(l, r))
                 && eq_local_kind(&l.kind, &r.kind)