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
|
@ -2139,7 +2139,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
|
|||
// the same span as the error and the type is specified.
|
||||
if let hir::Stmt {
|
||||
kind:
|
||||
hir::StmtKind::Local(hir::Local {
|
||||
hir::StmtKind::Let(hir::Local {
|
||||
init: Some(hir::Expr { span: init_span, .. }),
|
||||
ty: Some(array_ty),
|
||||
..
|
||||
|
|
|
@ -585,7 +585,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
|
|||
}
|
||||
|
||||
fn visit_stmt(&mut self, ex: &'v hir::Stmt<'v>) -> Self::Result {
|
||||
if let hir::StmtKind::Local(hir::Local {
|
||||
if let hir::StmtKind::Let(hir::Local {
|
||||
span,
|
||||
pat: hir::Pat { .. },
|
||||
ty: None,
|
||||
|
@ -824,7 +824,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
|
|||
|
||||
let hir = self.tcx.hir();
|
||||
for stmt in blk.stmts.iter().rev() {
|
||||
let hir::StmtKind::Local(local) = &stmt.kind else {
|
||||
let hir::StmtKind::Let(local) = &stmt.kind else {
|
||||
continue;
|
||||
};
|
||||
local.pat.walk(&mut find_compatible_candidates);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue