Factor out hir::Node::Binding
This commit is contained in:
parent
ca1e68b322
commit
ec82bc1996
18 changed files with 22 additions and 37 deletions
|
@ -997,7 +997,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
continue;
|
||||
};
|
||||
let pat = match tcx.hir().get(arg.pat.hir_id) {
|
||||
Node::Pat(pat) | Node::Binding(pat) => pat,
|
||||
Node::Pat(pat) => pat,
|
||||
node => bug!("pattern became {:?}", node),
|
||||
};
|
||||
let pattern = pat_from_hir(tcx, self.param_env, self.typeck_results, pat);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue