Skip to content

Commit

Permalink
s/(Ident, ItemKind)/ItemInfo/
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-ardi committed May 14, 2024
1 parent 9db789a commit b829b28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_parse/src/parser/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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 {
Expand Down

0 comments on commit b829b28

Please sign in to comment.