about summary refs log tree commit diff
path: root/compiler/rustc_const_eval
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-06-02 11:10:34 -0400
committerRalf Jung <post@ralfj.de>2022-06-02 11:12:12 -0400
commitd5a590f53744add6e37eee19f4591f2be6d990f8 (patch)
tree3cba3ad0f9e0302e7335271905276533af5649f6 /compiler/rustc_const_eval
parentfafccdced349d655db83e0ec30e91b85dcf65cf7 (diff)
downloadrust-d5a590f53744add6e37eee19f4591f2be6d990f8.tar.gz
rust-d5a590f53744add6e37eee19f4591f2be6d990f8.zip
comment
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
Diffstat (limited to 'compiler/rustc_const_eval')
-rw-r--r--compiler/rustc_const_eval/src/transform/promote_consts.rs2
1 files changed, 1 insertions, 1 deletions
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)?;