We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbd0d9b commit 9300c3bCopy full SHA for 9300c3b
src/librustc_parse/parser/item.rs
@@ -1337,6 +1337,8 @@ impl<'a> Parser<'a> {
1337
/// Parses the part of an enum declaration following the `{`.
1338
fn parse_enum_def(&mut self, _generics: &Generics) -> PResult<'a, EnumDef> {
1339
let mut variants = Vec::new();
1340
+ // FIXME: Consider using `parse_delim_comma_seq`.
1341
+ // We could then remove eating comma in `recover_nested_adt_item`.
1342
while self.token != token::CloseDelim(token::Brace) {
1343
let variant_attrs = self.parse_outer_attributes()?;
1344
let vlo = self.token.span;
0 commit comments