]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir/src/interpret/validity.rs
fix a comment in validity check
[rust.git] / compiler / rustc_mir / src / interpret / validity.rs
index c38f25564e8dd3707f3c043fe0388fde4432fc87..3c76f89f30e830e610db8ef0bebae7d945a336ae 100644 (file)
@@ -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(..)