Rebase fallout

This commit is contained in:
Oliver Scherer 2019-10-17 13:28:14 +02:00
parent f5669ebb45
commit bb5a652361

View file

@ -1400,7 +1400,7 @@ fn check_union_fields(tcx: TyCtxt<'_>, _: Span, item_def_id: DefId) -> bool {
return true;
}
let item_type = tcx.type_of(item_def_id);
if let ty::Adt(def, substs) = item_type.sty {
if let ty::Adt(def, substs) = item_type.kind {
if def.is_union() {
let fields = &def.non_enum_variant().fields;
for field in fields {