From fb23a5cf3bda8d4d5ee89be4c1777d28a1061f9b Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Fri, 20 Sep 2019 12:46:41 +0200 Subject: [PATCH] Clarify a vague comment --- src/librustc_typeck/check/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs index ea27efcd0fb..d2a4b824439 100644 --- a/src/librustc_typeck/check/mod.rs +++ b/src/librustc_typeck/check/mod.rs @@ -1394,7 +1394,8 @@ fn check_union(tcx: TyCtxt<'_>, id: hir::HirId, span: Span) { /// When the `#![feature(untagged_unions)]` gate is active, /// check that the fields of the `union` does not contain fields that need dropping. fn check_union_fields(tcx: TyCtxt<'_>, _: Span, item_def_id: DefId) -> bool { - // Without the feature we check Copy types only later + // Without the feature we check that all fields are `Copy` in our stability checking + // infrastructure. if !tcx.features().untagged_unions { return true; } -- 2.44.0