We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71c0bd5 commit a818648Copy full SHA for a818648
src/libsyntax/parse/parser.rs
@@ -3776,15 +3776,9 @@ pub impl Parser {
3776
})
3777
}
3778
3779
- fn parse_type_decl(&self) -> (BytePos, ident) {
3780
- let lo = self.last_span.lo;
3781
- let id = self.parse_ident();
3782
- (lo, id)
3783
- }
3784
-
3785
// parse type Foo = Bar;
3786
fn parse_item_type(&self) -> item_info {
3787
- let (_, ident) = self.parse_type_decl();
+ let ident = self.parse_ident();
3788
self.parse_region_param();
3789
let tps = self.parse_generics();
3790
self.expect(&token::EQ);
0 commit comments