]> git.lizzy.rs Git - rust.git/commitdiff
Clarify a vague comment
authorOliver Scherer <github35764891676564198441@oli-obk.de>
Fri, 20 Sep 2019 10:46:41 +0000 (12:46 +0200)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Fri, 11 Oct 2019 08:43:54 +0000 (10:43 +0200)
src/librustc_typeck/check/mod.rs

index ea27efcd0fbcd857616fd10a300d154e5b75b13a..d2a4b824439d3f0ffc0cd6ceab82426dd6d41e7d 100644 (file)
@@ -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;
     }