diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-10-17 13:28:14 +0200 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-10-17 13:28:14 +0200 |
| commit | bb5a652361bb416e38fa4f41784dd5d08b232f59 (patch) | |
| tree | ecd1e2733ac338e4c9bbae63db9bd24444b18dea /src | |
| parent | f5669ebb45353bfb828650472af783331b7b90fe (diff) | |
| download | rust-bb5a652361bb416e38fa4f41784dd5d08b232f59.tar.gz rust-bb5a652361bb416e38fa4f41784dd5d08b232f59.zip | |
Rebase fallout
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_typeck/check/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs index d2a4b824439..3e0527393cd 100644 --- a/src/librustc_typeck/check/mod.rs +++ b/src/librustc_typeck/check/mod.rs @@ -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 { |
