remove unused field from VariantDef::new and convert debug to instrument

This commit is contained in:
klensy 2025-02-24 12:25:17 +03:00
parent cede9029fd
commit 8467a76581
3 changed files with 1 additions and 9 deletions

View file

@ -1075,7 +1075,6 @@ fn lower_variant<'tcx>(
def.ctor().map(|(kind, _, def_id)| (kind, def_id.to_def_id())),
discr,
fields,
adt_kind,
parent_did.to_def_id(),
recovered,
adt_kind == AdtKind::Struct && tcx.has_attr(parent_did, sym::non_exhaustive)