about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/path.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-04-07 12:52:32 +0000
committerbors <bors@rust-lang.org>2022-04-07 12:52:32 +0000
commitfa723160318fac5f3fa6f4141cfc41c0606a3008 (patch)
treea41085f587d3243ca62065f0ee2555d9dd892a41 /compiler/rustc_parse/src/parser/path.rs
parented6c958ee4bf081deec951996ace9c508360c1d9 (diff)
parentd9592c2d9f0db851b090c10c0cc3560b87fc7789 (diff)
downloadrust-fa723160318fac5f3fa6f4141cfc41c0606a3008.tar.gz
rust-fa723160318fac5f3fa6f4141cfc41c0606a3008.zip
Auto merge of #95715 - nnethercote:shrink-Nonterminal, r=davidtwco
Shrink `Nonterminal`

Small consistency and performance improvements.

r? `@petrochenkov`
Diffstat (limited to 'compiler/rustc_parse/src/parser/path.rs')
-rw-r--r--compiler/rustc_parse/src/parser/path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/path.rs b/compiler/rustc_parse/src/parser/path.rs
index 93663a349f5..207ecd00e0c 100644
--- a/compiler/rustc_parse/src/parser/path.rs
+++ b/compiler/rustc_parse/src/parser/path.rs
@@ -165,7 +165,7 @@ impl<'a> Parser<'a> {
 
         maybe_whole!(self, NtPath, |path| {
             reject_generics_if_mod_style(self, &path);
-            path
+            path.into_inner()
         });
 
         if let token::Interpolated(nt) = &self.token.kind {