Skip to content

Commit 05a644e

Browse files
SimonSapinCentril
authored andcommitted
Update src/librustc_typeck/check/mod.rs
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
1 parent e247a40 commit 05a644e

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ fn check_union_fields<'tcx>(tcx: TyCtxt<'tcx>, _sp: Span, item_def_id: DefId) ->
14021402
let fields = &def.non_enum_variant().fields;
14031403
for field in fields {
14041404
let field_ty = field.ty(tcx, substs);
1405-
// We are currently checking the type this field came from, so it must be local
1405+
// We are currently checking the type this field came from, so it must be local.
14061406
let field_span = tcx.hir().span_if_local(field.did).unwrap();
14071407
let param_env = tcx.param_env(field.did);
14081408
if field_ty.needs_drop(tcx, param_env) {

0 commit comments

Comments
 (0)