Auto merge of #28442 - nagisa:remove-enum-vis-field, r=alexcrichton
Followup on #28440 Do not merge before the referenced PR is merged. I will fix the PR once that is merged (or close if it is not)
This commit is contained in:
commit
72a10fa1d3
16 changed files with 15 additions and 51 deletions
|
@ -5185,13 +5185,10 @@ impl<'a> Parser<'a> {
|
|||
let variant_attrs = self.parse_outer_attributes();
|
||||
let vlo = self.span.lo;
|
||||
|
||||
let vis = try!(self.parse_visibility());
|
||||
|
||||
let ident;
|
||||
let kind;
|
||||
let mut args = Vec::new();
|
||||
let mut disr_expr = None;
|
||||
ident = try!(self.parse_ident());
|
||||
let ident = try!(self.parse_ident());
|
||||
if try!(self.eat(&token::OpenDelim(token::Brace)) ){
|
||||
// Parse a struct variant.
|
||||
all_nullary = false;
|
||||
|
@ -5233,7 +5230,6 @@ impl<'a> Parser<'a> {
|
|||
kind: kind,
|
||||
id: ast::DUMMY_NODE_ID,
|
||||
disr_expr: disr_expr,
|
||||
vis: vis,
|
||||
};
|
||||
variants.push(P(spanned(vlo, self.last_span.hi, vr)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue