about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-04-04 12:54:56 -0400
committerMichael Goulet <michael@errs.io>2024-04-15 16:45:01 -0400
commit42ba57c0133306ff510bf641e9d90b33419d7ac7 (patch)
treedf7fe9e9b5b5976f17da016354e838a87fe5cd3d /compiler/rustc_parse/src
parent41cf87b71b792b40155cd79f96234a89ae7dc27f (diff)
downloadrust-42ba57c0133306ff510bf641e9d90b33419d7ac7.tar.gz
rust-42ba57c0133306ff510bf641e9d90b33419d7ac7.zip
Validation and other things
Diffstat (limited to 'compiler/rustc_parse/src')
-rw-r--r--compiler/rustc_parse/src/parser/ty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/ty.rs b/compiler/rustc_parse/src/parser/ty.rs
index a24ecf938ba..91f4823f65d 100644
--- a/compiler/rustc_parse/src/parser/ty.rs
+++ b/compiler/rustc_parse/src/parser/ty.rs
@@ -674,7 +674,7 @@ impl<'a> Parser<'a> {
             let use_span = self.prev_token.span;
             self.psess.gated_spans.gate(sym::precise_capturing, use_span);
             let args = self.parse_precise_capturing_args()?;
-            Some(args)
+            Some(P((args, use_span)))
         } else {
             None
         };