Merge Variant and Variant_
This commit is contained in:
parent
60960a260f
commit
6a42b0b28d
46 changed files with 162 additions and 166 deletions
|
@ -2038,7 +2038,7 @@ pub struct EnumDef {
|
|||
}
|
||||
|
||||
#[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
|
||||
pub struct Variant_ {
|
||||
pub struct Variant {
|
||||
/// Name of the variant.
|
||||
pub ident: Ident,
|
||||
/// Attributes of the variant.
|
||||
|
@ -2049,10 +2049,10 @@ pub struct Variant_ {
|
|||
pub data: VariantData,
|
||||
/// Explicit discriminant, e.g., `Foo = 1`.
|
||||
pub disr_expr: Option<AnonConst>,
|
||||
/// Span
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
pub type Variant = Spanned<Variant_>;
|
||||
|
||||
/// Part of `use` item to the right of its prefix.
|
||||
#[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
|
||||
pub enum UseTreeKind {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue