Skip to content

Commit 5e3cc6e

Browse files
authored
Rollup merge of #78475 - RalfJung:validity-comment, r=oli-obk
fix a comment in validity check A few things changed since that comment was written; update it to the current reality. r? @oli-obk
2 parents 7eb7b5a + c90ef97 commit 5e3cc6e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_mir/src/interpret/validity.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -579,9 +579,8 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, '
579579
// Nothing to check.
580580
Ok(true)
581581
}
582-
// The above should be all the (inhabited) primitive types. The rest is compound, we
582+
// The above should be all the primitive types. The rest is compound, we
583583
// check them by visiting their fields/variants.
584-
// (`Str` UTF-8 check happens in `visit_aggregate`, too.)
585584
ty::Adt(..)
586585
| ty::Tuple(..)
587586
| ty::Array(..)

0 commit comments

Comments
 (0)