or-patterns: regionck/link_match: remove top_pats_hack.
This commit is contained in:
parent
38a5ae9cc1
commit
9b406f1069
1 changed files with 1 additions and 3 deletions
|
|
@ -1067,9 +1067,7 @@ impl<'a, 'tcx> RegionCtxt<'a, 'tcx> {
|
|||
let discr_cmt = Rc::new(ignore_err!(self.with_mc(|mc| mc.cat_expr(discr))));
|
||||
debug!("discr_cmt={:?}", discr_cmt);
|
||||
for arm in arms {
|
||||
for root_pat in arm.top_pats_hack() {
|
||||
self.link_pattern(discr_cmt.clone(), &root_pat);
|
||||
}
|
||||
self.link_pattern(discr_cmt.clone(), &arm.pat);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue