diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-19 16:24:21 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-19 19:12:02 +1000 |
| commit | 8170acb197d7658505949cefc12e01dfc4c8feab (patch) | |
| tree | cef1ddb5ba649b51982ff00ea043be2e4119cb97 /compiler/rustc_parse/src/parser/mod.rs | |
| parent | 43eae4cef4f4e519641e0f0a3915b8023db92f00 (diff) | |
| download | rust-8170acb197d7658505949cefc12e01dfc4c8feab.tar.gz rust-8170acb197d7658505949cefc12e01dfc4c8feab.zip | |
Refactor `parse_expr_res`.
This removes the final `Option<AttrWrapper>` argument.
Diffstat (limited to 'compiler/rustc_parse/src/parser/mod.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/mod.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs index adf04fcf224..f4cab480669 100644 --- a/compiler/rustc_parse/src/parser/mod.rs +++ b/compiler/rustc_parse/src/parser/mod.rs @@ -1337,17 +1337,6 @@ impl<'a> Parser<'a> { }) } - fn parse_or_use_outer_attributes( - &mut self, - already_parsed_attrs: Option<AttrWrapper>, - ) -> PResult<'a, AttrWrapper> { - if let Some(attrs) = already_parsed_attrs { - Ok(attrs) - } else { - self.parse_outer_attributes() - } - } - /// Parses a single token tree from the input. pub fn parse_token_tree(&mut self) -> TokenTree { match self.token.kind { |
