1
Fork 0

Merge Variant and Variant_

This commit is contained in:
Caio 2019-08-13 21:40:21 -03:00
parent 60960a260f
commit 6a42b0b28d
46 changed files with 162 additions and 166 deletions

View file

@ -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 {