Skip to content

Commit fc512d2

Browse files
SimonSapinoli-obk
authored andcommitted
More descriptive variable name
1 parent bf25a9c commit fc512d2

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

src/librustc_typeck/check/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,8 +1398,8 @@ fn check_union_fields(tcx: TyCtxt<'_>, _: Span, item_def_id: DefId) -> bool {
13981398
if !tcx.features().untagged_unions {
13991399
return true;
14001400
}
1401-
let t = tcx.type_of(item_def_id);
1402-
if let ty::Adt(def, substs) = t.sty {
1401+
let item_type = tcx.type_of(item_def_id);
1402+
if let ty::Adt(def, substs) = item_type.sty {
14031403
if def.is_union() {
14041404
let fields = &def.non_enum_variant().fields;
14051405
for field in fields {

0 commit comments

Comments
 (0)