remove unnecessary function
This commit is contained in:
parent
71c0bd5c5d
commit
a818648aa9
1 changed files with 1 additions and 7 deletions
|
@ -3776,15 +3776,9 @@ pub impl Parser {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fn parse_type_decl(&self) -> (BytePos, ident) {
|
|
||||||
let lo = self.last_span.lo;
|
|
||||||
let id = self.parse_ident();
|
|
||||||
(lo, id)
|
|
||||||
}
|
|
||||||
|
|
||||||
// parse type Foo = Bar;
|
// parse type Foo = Bar;
|
||||||
fn parse_item_type(&self) -> item_info {
|
fn parse_item_type(&self) -> item_info {
|
||||||
let (_, ident) = self.parse_type_decl();
|
let ident = self.parse_ident();
|
||||||
self.parse_region_param();
|
self.parse_region_param();
|
||||||
let tps = self.parse_generics();
|
let tps = self.parse_generics();
|
||||||
self.expect(&token::EQ);
|
self.expect(&token::EQ);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue