We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b6602d2 + cb08677 commit d4b6235Copy full SHA for d4b6235
src/librustc_parse/parser/item.rs
@@ -1325,7 +1325,7 @@ impl<'a> Parser<'a> {
1325
1326
let (variants, _) = self.parse_delim_comma_seq(
1327
token::Brace,
1328
- |p| p.parse_enum_item(),
+ |p| p.parse_enum_variant(),
1329
).map_err(|e| {
1330
self.recover_stmt();
1331
e
@@ -1337,7 +1337,7 @@ impl<'a> Parser<'a> {
1337
Ok((id, ItemKind::Enum(enum_definition, generics), None))
1338
}
1339
1340
- fn parse_enum_item(&mut self) -> PResult<'a, Option<Variant>> {
+ fn parse_enum_variant(&mut self) -> PResult<'a, Option<Variant>> {
1341
let variant_attrs = self.parse_outer_attributes()?;
1342
let vlo = self.token.span;
1343
0 commit comments