1
Fork 0

Rename ast::StmtKind::Local into ast::StmtKind::Let

This commit is contained in:
Guillaume Gomez 2024-03-14 11:25:05 +01:00
parent 6f3eb1ce3d
commit ca9f0630a9
17 changed files with 24 additions and 24 deletions

View file

@ -32,7 +32,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
let mut expr = None;
while let [s, tail @ ..] = ast_stmts {
match &s.kind {
StmtKind::Local(local) => {
StmtKind::Let(local) => {
let hir_id = self.lower_node_id(s.id);
let local = self.lower_local(local);
self.alias_attrs(hir_id, local.hir_id);