]> git.lizzy.rs Git - rust.git/commitdiff
fix typo
authorRalf Jung <post@ralfj.de>
Mon, 22 Jun 2020 07:00:40 +0000 (09:00 +0200)
committerRalf Jung <post@ralfj.de>
Mon, 22 Jun 2020 07:19:08 +0000 (09:19 +0200)
Co-authored-by: Bastian Kauschke <bastian_kauschke@hotmail.de>
src/librustc_mir/transform/validate.rs

index d0293131b263a62969f8f95dd26a77ed3f777001..803954d258fa04ed346de59291f9de949876a027 100644 (file)
@@ -95,7 +95,7 @@ fn mir_assign_valid_types(&self, src: Ty<'tcx>, dest: Ty<'tcx>) -> bool {
         }
         // Normalize projections and things like that.
         // FIXME: We need to reveal_all, as some optimizations change types in ways
-        // that requires unfolding opaque types.
+        // that require unfolding opaque types.
         let param_env = self.param_env.with_reveal_all();
         let src = self.tcx.normalize_erasing_regions(param_env, src);
         let dest = self.tcx.normalize_erasing_regions(param_env, dest);