Skip to content

Commit 3398b63

Browse files
committed
w
1 parent 126aa76 commit 3398b63

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_hir_analysis/src/check

1 file changed

+1
-1
lines changed

compiler/rustc_hir_analysis/src/check/check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ fn check_union_fields(tcx: TyCtxt<'_>, span: Span, item_def_id: LocalDefId) -> b
112112
}
113113
}
114114

115-
let typing_env = ty::TypingEnv::non_body_analysis(tcx, item_def_id.to_def_id());
115+
let typing_env = ty::TypingEnv::non_body_analysis(tcx, item_def_id);
116116
for field in &def.non_enum_variant().fields {
117117
let Ok(field_ty) = tcx.try_normalize_erasing_regions(typing_env, field.ty(tcx, args))
118118
else {

0 commit comments

Comments
 (0)