From 51cec58040780975903e42fee6d30427b3f2cd15 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 29 Dec 2020 16:32:38 +0100 Subject: [PATCH] fix a comment --- compiler/rustc_mir/src/transform/promote_consts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)?; }