mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
fix a comment in validity check
This commit is contained in:
@@ -559,9 +559,8 @@ fn try_visit_primitive(
|
||||
// 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(..)
|
||||
|
||||
Reference in New Issue
Block a user