Rebase fallout
This commit is contained in:
parent
f5669ebb45
commit
bb5a652361
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue