about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--compiler/rustc_mir/src/transform/promote_consts.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir/src/transform/promote_consts.rs b/compiler/rustc_mir/src/transform/promote_consts.rs
index 71a1d57fec3..ea92e23e9bf 100644
--- a/compiler/rustc_mir/src/transform/promote_consts.rs
+++ b/compiler/rustc_mir/src/transform/promote_consts.rs
@@ -687,7 +687,7 @@ impl<'tcx> Validator<'_, 'tcx> {
                 self.validate_place(place_simplified)?;
 
                 // Check that the reference is fine (using the original place!).
-                // (Needs to come after `validate_local` to avoid ICEs.)
+                // (Needs to come after `validate_place` to avoid ICEs.)
                 self.validate_ref(*kind, place)?;
             }