More polishing
This commit is contained in:
parent
52c6b101ea
commit
ac7651ccaf
12 changed files with 79 additions and 5 deletions
|
@ -669,7 +669,9 @@ impl<'a> Parser<'a> {
|
|||
})
|
||||
}
|
||||
|
||||
// parse precise captures, if any.
|
||||
// parse precise captures, if any. This is `use<'lt, 'lt, P, P>`; a list of
|
||||
// lifetimes and ident params (including SelfUpper). These are validated later
|
||||
// for order, duplication, and whether they actually reference params.
|
||||
let precise_capturing = if self.eat_keyword(kw::Use) {
|
||||
let use_span = self.prev_token.span;
|
||||
self.psess.gated_spans.gate(sym::precise_capturing, use_span);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue