Skip to content

Commit

Permalink
Rebase fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Oct 17, 2019
1 parent f5669eb commit bb5a652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_typeck/check/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bb5a652

Please sign in to comment.