Skip to content

Commit

Permalink
parse_enum_item -> parse_enum_variant
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Nov 30, 2019
1 parent 8f1bbd6 commit cb08677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_parse/parser/item.rs
Expand Up @@ -1332,7 +1332,7 @@ impl<'a> Parser<'a> {

let (variants, _) = self.parse_delim_comma_seq(
token::Brace,
|p| p.parse_enum_item(),
|p| p.parse_enum_variant(),
).map_err(|e| {
self.recover_stmt();
e
Expand All @@ -1344,7 +1344,7 @@ impl<'a> Parser<'a> {
Ok((id, ItemKind::Enum(enum_definition, generics), None))
}

fn parse_enum_item(&mut self) -> PResult<'a, Option<Variant>> {
fn parse_enum_variant(&mut self) -> PResult<'a, Option<Variant>> {
let variant_attrs = self.parse_outer_attributes()?;
let vlo = self.token.span;

Expand Down

0 comments on commit cb08677

Please sign in to comment.