Skip to content

Commit bb5a652

Browse files
committed
Rebase fallout
1 parent f5669eb commit bb5a652

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_typeck/check

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1400,7 +1400,7 @@ fn check_union_fields(tcx: TyCtxt<'_>, _: Span, item_def_id: DefId) -> bool {
14001400
return true;
14011401
}
14021402
let item_type = tcx.type_of(item_def_id);
1403-
if let ty::Adt(def, substs) = item_type.sty {
1403+
if let ty::Adt(def, substs) = item_type.kind {
14041404
if def.is_union() {
14051405
let fields = &def.non_enum_variant().fields;
14061406
for field in fields {

0 commit comments

Comments
 (0)