File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_parse/src/parser Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ impl<'a> Parser<'a> {
311
311
Ok ( Some ( info) )
312
312
}
313
313
314
- fn recover_import_as_use ( & mut self ) -> PResult < ' a , Option < ( Ident , ItemKind ) > > {
314
+ fn recover_import_as_use ( & mut self ) -> PResult < ' a , Option < ItemInfo > > {
315
315
let span = self . token . span ;
316
316
let token_name = super :: token_descr ( & self . token ) ;
317
317
let snapshot = self . create_snapshot_for_diagnostic ( ) ;
@@ -329,7 +329,7 @@ impl<'a> Parser<'a> {
329
329
}
330
330
}
331
331
332
- fn parse_use_item ( & mut self ) -> PResult < ' a , ( Ident , ItemKind ) > {
332
+ fn parse_use_item ( & mut self ) -> PResult < ' a , ItemInfo > {
333
333
let tree = self . parse_use_tree ( ) ?;
334
334
if let Err ( mut e) = self . expect_semi ( ) {
335
335
match tree. kind {
You can’t perform that action at this time.
0 commit comments