Rename ast::StmtKind::Local
into ast::StmtKind::Let
This commit is contained in:
parent
97f2ade8e6
commit
da2795fe48
@ -267,7 +267,7 @@ pub fn eq_block(l: &Block, r: &Block) -> bool {
|
|||||||
pub fn eq_stmt(l: &Stmt, r: &Stmt) -> bool {
|
pub fn eq_stmt(l: &Stmt, r: &Stmt) -> bool {
|
||||||
use StmtKind::*;
|
use StmtKind::*;
|
||||||
match (&l.kind, &r.kind) {
|
match (&l.kind, &r.kind) {
|
||||||
(Local(l), Local(r)) => {
|
(Let(l), Let(r)) => {
|
||||||
eq_pat(&l.pat, &r.pat)
|
eq_pat(&l.pat, &r.pat)
|
||||||
&& both(&l.ty, &r.ty, |l, r| eq_ty(l, r))
|
&& both(&l.ty, &r.ty, |l, r| eq_ty(l, r))
|
||||||
&& eq_local_kind(&l.kind, &r.kind)
|
&& eq_local_kind(&l.kind, &r.kind)
|
||||||
|
Loading…
Reference in New Issue
Block a user