diff options
| author | bors <bors@rust-lang.org> | 2022-04-07 12:52:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-04-07 12:52:32 +0000 |
| commit | fa723160318fac5f3fa6f4141cfc41c0606a3008 (patch) | |
| tree | a41085f587d3243ca62065f0ee2555d9dd892a41 /compiler/rustc_parse/src/parser/mod.rs | |
| parent | ed6c958ee4bf081deec951996ace9c508360c1d9 (diff) | |
| parent | d9592c2d9f0db851b090c10c0cc3560b87fc7789 (diff) | |
| download | rust-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/mod.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs index 792f9d9ccce..f1956fb695b 100644 --- a/compiler/rustc_parse/src/parser/mod.rs +++ b/compiler/rustc_parse/src/parser/mod.rs @@ -1289,7 +1289,7 @@ impl<'a> Parser<'a> { /// so emit a proper diagnostic. // Public for rustfmt usage. pub fn parse_visibility(&mut self, fbt: FollowedByType) -> PResult<'a, Visibility> { - maybe_whole!(self, NtVis, |x| x); + maybe_whole!(self, NtVis, |x| x.into_inner()); self.expected_tokens.push(TokenType::Keyword(kw::Crate)); if self.is_crate_vis() { |
