From db5a616405df5956a76bf08ec3ad97258a2ccee8 Mon Sep 17 00:00:00 2001 From: ardi Date: Tue, 14 May 2024 16:35:00 +0200 Subject: [PATCH] s/(Ident, ItemKind)/ItemInfo/ --- compiler/rustc_parse/src/parser/item.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index 05b0e0fe52d..8e085f963cd 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -311,7 +311,7 @@ fn parse_item_kind( Ok(Some(info)) } - fn recover_import_as_use(&mut self) -> PResult<'a, Option<(Ident, ItemKind)>> { + fn recover_import_as_use(&mut self) -> PResult<'a, Option> { let span = self.token.span; let token_name = super::token_descr(&self.token); let snapshot = self.create_snapshot_for_diagnostic(); @@ -329,7 +329,7 @@ fn recover_import_as_use(&mut self) -> PResult<'a, Option<(Ident, ItemKind)>> { } } - fn parse_use_item(&mut self) -> PResult<'a, (Ident, ItemKind)> { + fn parse_use_item(&mut self) -> PResult<'a, ItemInfo> { let tree = self.parse_use_tree()?; if let Err(mut e) = self.expect_semi() { match tree.kind {