Skip to content

Commit c90ef97

Browse files
committed
fix a comment in validity check
1 parent 56d288f commit c90ef97

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
@@ -559,9 +559,8 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, '
559559
// Nothing to check.
560560
Ok(true)
561561
}
562-
// The above should be all the (inhabited) primitive types. The rest is compound, we
562+
// The above should be all the primitive types. The rest is compound, we
563563
// check them by visiting their fields/variants.
564-
// (`Str` UTF-8 check happens in `visit_aggregate`, too.)
565564
ty::Adt(..)
566565
| ty::Tuple(..)
567566
| ty::Array(..)

0 commit comments

Comments
 (0)