Factor out hir::Node::Binding
This commit is contained in:
parent
ca1e68b322
commit
ec82bc1996
18 changed files with 22 additions and 37 deletions
|
@ -623,9 +623,9 @@ impl<'tcx> SaveContext<'tcx> {
|
|||
}
|
||||
},
|
||||
|
||||
Node::Binding(&hir::Pat {
|
||||
kind: hir::PatKind::Binding(_, canonical_id, ..), ..
|
||||
}) => Res::Local(canonical_id),
|
||||
Node::Pat(&hir::Pat { kind: hir::PatKind::Binding(_, canonical_id, ..), .. }) => {
|
||||
Res::Local(canonical_id)
|
||||
}
|
||||
|
||||
_ => Res::Err,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue