From d5a590f53744add6e37eee19f4591f2be6d990f8 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 2 Jun 2022 11:10:34 -0400 Subject: comment Co-authored-by: Oli Scherer --- compiler/rustc_const_eval/src/transform/promote_consts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_const_eval/src/transform') diff --git a/compiler/rustc_const_eval/src/transform/promote_consts.rs b/compiler/rustc_const_eval/src/transform/promote_consts.rs index 4879e8de100..d1e776854b2 100644 --- a/compiler/rustc_const_eval/src/transform/promote_consts.rs +++ b/compiler/rustc_const_eval/src/transform/promote_consts.rs @@ -504,7 +504,7 @@ impl<'tcx> Validator<'_, 'tcx> { // ptr-to-int casts are not possible in consts and thus not promotable Rvalue::Cast(CastKind::PointerExposeAddress, _, _) => return Err(Unpromotable), - // all ohter casts including int-to-ptr casts are fine, they just use the integer value + // all other casts including int-to-ptr casts are fine, they just use the integer value // at pointer type. Rvalue::Cast(_, operand, _) => { self.validate_operand(operand)?; -- cgit 1.4.1-3-g733a5