diff options
| author | Michael Goulet <michael@errs.io> | 2024-04-04 20:36:18 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-04-15 16:45:48 -0400 |
| commit | ac7651ccaf7447e695bf505916463927b78e433f (patch) | |
| tree | cf15c9e381179b9b76f83ec7518e39fb0837923f /compiler/rustc_parse/src | |
| parent | 52c6b101ea18ed6f09367bf459ac55ffe473cd9c (diff) | |
| download | rust-ac7651ccaf7447e695bf505916463927b78e433f.tar.gz rust-ac7651ccaf7447e695bf505916463927b78e433f.zip | |
More polishing
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/ty.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/ty.rs b/compiler/rustc_parse/src/parser/ty.rs index f78a039394b..a6195fa7693 100644 --- a/compiler/rustc_parse/src/parser/ty.rs +++ b/compiler/rustc_parse/src/parser/ty.rs @@ -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); |
