Move binder and polarity parsing into parse_generic_ty_bound
This commit is contained in:
parent
036b38ced3
commit
3bc3247200
7 changed files with 204 additions and 40 deletions
|
@ -2327,7 +2327,7 @@ impl<'a> Parser<'a> {
|
|||
let before = self.prev_token.clone();
|
||||
let binder = if self.check_keyword(kw::For) {
|
||||
let lo = self.token.span;
|
||||
let lifetime_defs = self.parse_late_bound_lifetime_defs()?;
|
||||
let (lifetime_defs, _) = self.parse_late_bound_lifetime_defs()?;
|
||||
let span = lo.to(self.prev_token.span);
|
||||
|
||||
self.psess.gated_spans.gate(sym::closure_lifetime_binder, span);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue