about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/librustc_typeck/check/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs
index 2f122e5edb1..294d1992b9d 100644
--- a/src/librustc_typeck/check/mod.rs
+++ b/src/librustc_typeck/check/mod.rs
@@ -1402,7 +1402,7 @@ fn check_union_fields<'tcx>(tcx: TyCtxt<'tcx>, _sp: Span, item_def_id: DefId) ->
             let fields = &def.non_enum_variant().fields;
             for field in fields {
                 let field_ty = field.ty(tcx, substs);
-                // We are currently checking the type this field came from, so it must be local
+                // We are currently checking the type this field came from, so it must be local.
                 let field_span = tcx.hir().span_if_local(field.did).unwrap();
                 let param_env = tcx.param_env(field.did);
                 if field_ty.needs_drop(tcx, param_env) {