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
This commit is contained in:
commit
5e3cc6e913
1 changed files with 1 additions and 2 deletions
|
@ -579,9 +579,8 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, '
|
|||
// Nothing to check.
|
||||
Ok(true)
|
||||
}
|
||||
// The above should be all the (inhabited) primitive types. The rest is compound, we
|
||||
// The above should be all the primitive types. The rest is compound, we
|
||||
// check them by visiting their fields/variants.
|
||||
// (`Str` UTF-8 check happens in `visit_aggregate`, too.)
|
||||
ty::Adt(..)
|
||||
| ty::Tuple(..)
|
||||
| ty::Array(..)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue