Rename hir::StmtKind::Local
into hir::StmtKind::Let
This commit is contained in:
parent
ca9f0630a9
commit
a4e0e50a3f
58 changed files with 76 additions and 76 deletions
|
@ -2444,7 +2444,7 @@ impl<'tcx> Visitor<'tcx> for CheckAttrVisitor<'tcx> {
|
|||
|
||||
fn visit_stmt(&mut self, stmt: &'tcx hir::Stmt<'tcx>) {
|
||||
// When checking statements ignore expressions, they will be checked later.
|
||||
if let hir::StmtKind::Local(l) = stmt.kind {
|
||||
if let hir::StmtKind::Let(l) = stmt.kind {
|
||||
self.check_attributes(l.hir_id, stmt.span, Target::Statement, None);
|
||||
}
|
||||
intravisit::walk_stmt(self, stmt)
|
||||
|
|
|
@ -277,7 +277,7 @@ impl<'v> hir_visit::Visitor<'v> for StatCollector<'v> {
|
|||
fn visit_stmt(&mut self, s: &'v hir::Stmt<'v>) {
|
||||
record_variants!(
|
||||
(self, s, s.kind, Id::Node(s.hir_id), hir, Stmt, StmtKind),
|
||||
[Local, Item, Expr, Semi]
|
||||
[Let, Item, Expr, Semi]
|
||||
);
|
||||
hir_visit::walk_stmt(self, s)
|
||||
}
|
||||
|
|
|
@ -771,7 +771,7 @@ impl<'a, 'tcx> Liveness<'a, 'tcx> {
|
|||
|
||||
fn propagate_through_stmt(&mut self, stmt: &hir::Stmt<'_>, succ: LiveNode) -> LiveNode {
|
||||
match stmt.kind {
|
||||
hir::StmtKind::Local(local) => {
|
||||
hir::StmtKind::Let(local) => {
|
||||
// Note: we mark the variable as defined regardless of whether
|
||||
// there is an initializer. Initially I had thought to only mark
|
||||
// the live variable as defined if it was initialized, and then we
|
||||
|
|
|
@ -280,7 +280,7 @@ impl<'tcx> Visitor<'tcx> for CheckInlineAssembly<'tcx> {
|
|||
fn visit_stmt(&mut self, stmt: &'tcx hir::Stmt<'tcx>) {
|
||||
match stmt.kind {
|
||||
StmtKind::Item(..) => {}
|
||||
StmtKind::Local(..) => {
|
||||
StmtKind::Let(..) => {
|
||||
self.items.push((ItemKind::NonAsm, stmt.span));
|
||||
}
|
||||
StmtKind::Expr(expr) | StmtKind::Semi(expr) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue