Skip to content

Commit

Permalink
More descriptive variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin authored and oli-obk committed Oct 11, 2019
1 parent bf25a9c commit fc512d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_typeck/check/mod.rs
Expand Up @@ -1398,8 +1398,8 @@ fn check_union_fields(tcx: TyCtxt<'_>, _: Span, item_def_id: DefId) -> bool {
if !tcx.features().untagged_unions {
return true;
}
let t = tcx.type_of(item_def_id);
if let ty::Adt(def, substs) = t.sty {
let item_type = tcx.type_of(item_def_id);
if let ty::Adt(def, substs) = item_type.sty {
if def.is_union() {
let fields = &def.non_enum_variant().fields;
for field in fields {
Expand Down

0 comments on commit fc512d2

Please sign in to comment.