Rename ast::StmtKind::Local into ast::StmtKind::Let
This commit is contained in:
parent
97f2ade8e6
commit
da2795fe48
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue