1
Fork 0

Remove AdtFlags::IS_ANONYMOUS and Copy/Clone condition for anonymous ADT

This commit is contained in:
Michael Goulet 2025-03-10 02:31:16 +00:00
parent 385970f0c1
commit f525b173ed
3 changed files with 1 additions and 18 deletions

View file

@ -1151,7 +1151,7 @@ pub struct VariantDef {
/// `DefId` that identifies the variant's constructor.
/// If this variant is a struct variant, then this is `None`.
pub ctor: Option<(CtorKind, DefId)>,
/// Variant or struct name, maybe empty for anonymous adt (struct or union).
/// Variant or struct name.
pub name: Symbol,
/// Discriminant of this variant.
pub discr: VariantDiscr,