Rename hir::Node::Local
into hir::Node::LetStmt
This commit is contained in:
parent
d318bf1009
commit
e0d3439226
43 changed files with 78 additions and 77 deletions
|
@ -937,7 +937,7 @@ impl<'tcx> LateContext<'tcx> {
|
|||
}
|
||||
&& let Some(init) = match parent_node {
|
||||
hir::Node::Expr(expr) => Some(expr),
|
||||
hir::Node::Local(hir::LetStmt { init, .. }) => *init,
|
||||
hir::Node::LetStmt(hir::LetStmt { init, .. }) => *init,
|
||||
_ => None,
|
||||
}
|
||||
{
|
||||
|
@ -982,7 +982,7 @@ impl<'tcx> LateContext<'tcx> {
|
|||
}
|
||||
&& let Some(init) = match parent_node {
|
||||
hir::Node::Expr(expr) => Some(expr),
|
||||
hir::Node::Local(hir::LetStmt { init, .. }) => *init,
|
||||
hir::Node::LetStmt(hir::LetStmt { init, .. }) => *init,
|
||||
hir::Node::Item(item) => match item.kind {
|
||||
hir::ItemKind::Const(.., body_id) | hir::ItemKind::Static(.., body_id) => {
|
||||
Some(self.tcx.hir().body(body_id).value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue