diff options
| author | ardi <ardis@ardi.dev> | 2024-05-14 16:35:00 +0200 |
|---|---|---|
| committer | ardi <ardis@ardi.dev> | 2024-05-17 15:47:21 +0200 |
| commit | db5a616405df5956a76bf08ec3ad97258a2ccee8 (patch) | |
| tree | 5c8947dbe885f20f3632916f61afbd603268289e /compiler/rustc_parse/src | |
| parent | 1f6d271527cd2ae25b586277d02ab71c1332f57c (diff) | |
| download | rust-db5a616405df5956a76bf08ec3ad97258a2ccee8.tar.gz rust-db5a616405df5956a76bf08ec3ad97258a2ccee8.zip | |
s/(Ident, ItemKind)/ItemInfo/
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/item.rs | 4 |
1 files 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 @@ impl<'a> Parser<'a> { 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<ItemInfo>> { let span = self.token.span; let token_name = super::token_descr(&self.token); let snapshot = self.create_snapshot_for_diagnostic(); @@ -329,7 +329,7 @@ impl<'a> Parser<'a> { } } - 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 { |
