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
|
@ -763,7 +763,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
|
|||
|
||||
let hir_id = self.tcx.local_def_id_to_hir_id(def_id.as_local()?);
|
||||
match self.tcx.parent_hir_node(hir_id) {
|
||||
hir::Node::Stmt(hir::Stmt { kind: hir::StmtKind::Local(local), .. }) => {
|
||||
hir::Node::Stmt(hir::Stmt { kind: hir::StmtKind::Let(local), .. }) => {
|
||||
get_name(err, &local.pat.kind)
|
||||
}
|
||||
// Different to previous arm because one is `&hir::Local` and the other
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue