Skip to content

Commit fb23a5c

Browse files
committed
Clarify a vague comment
1 parent 2fc257c commit fb23a5c

File tree

1 file changed

+2
-1
lines changed
  • src/librustc_typeck/check

1 file changed

+2
-1
lines changed

src/librustc_typeck/check/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,8 @@ fn check_union(tcx: TyCtxt<'_>, id: hir::HirId, span: Span) {
13941394
/// When the `#![feature(untagged_unions)]` gate is active,
13951395
/// check that the fields of the `union` does not contain fields that need dropping.
13961396
fn check_union_fields(tcx: TyCtxt<'_>, _: Span, item_def_id: DefId) -> bool {
1397-
// Without the feature we check Copy types only later
1397+
// Without the feature we check that all fields are `Copy` in our stability checking
1398+
// infrastructure.
13981399
if !tcx.features().untagged_unions {
13991400
return true;
14001401
}

0 commit comments

Comments
 (0)