about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-10-28 10:39:21 +0100
committerRalf Jung <post@ralfj.de>2020-10-28 10:39:21 +0100
commitc90ef979de8cf63b895dfec0c12f1e12c049e1b6 (patch)
treec2b0597ff162fb25d8e37b6a2bfbc7aaac192bd5
parent56d288fa46e04cd5faf53d369a1a640a97e2bb08 (diff)
downloadrust-c90ef979de8cf63b895dfec0c12f1e12c049e1b6.tar.gz
rust-c90ef979de8cf63b895dfec0c12f1e12c049e1b6.zip
fix a comment in validity check
-rw-r--r--compiler/rustc_mir/src/interpret/validity.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_mir/src/interpret/validity.rs b/compiler/rustc_mir/src/interpret/validity.rs
index c38f25564e8..3c76f89f30e 100644
--- a/compiler/rustc_mir/src/interpret/validity.rs
+++ b/compiler/rustc_mir/src/interpret/validity.rs
@@ -559,9 +559,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(..)