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 8f1bbd6 commit cb08677Copy full SHA for cb08677
src/librustc_parse/parser/item.rs
@@ -1332,7 +1332,7 @@ impl<'a> Parser<'a> {
1332
1333
let (variants, _) = self.parse_delim_comma_seq(
1334
token::Brace,
1335
- |p| p.parse_enum_item(),
+ |p| p.parse_enum_variant(),
1336
).map_err(|e| {
1337
self.recover_stmt();
1338
e
@@ -1344,7 +1344,7 @@ impl<'a> Parser<'a> {
1344
Ok((id, ItemKind::Enum(enum_definition, generics), None))
1345
}
1346
1347
- fn parse_enum_item(&mut self) -> PResult<'a, Option<Variant>> {
+ fn parse_enum_variant(&mut self) -> PResult<'a, Option<Variant>> {
1348
let variant_attrs = self.parse_outer_attributes()?;
1349
let vlo = self.token.span;
1350
0 commit comments