summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-24 17:08:59 +0200
committerGitHub <noreply@github.com>2023-10-24 17:08:59 +0200
commit0aade2f0de4561823875df84ca79af1017833f48 (patch)
tree19845d8426c654e88a01e52b0931c2cb0770f21d /compiler/rustc_const_eval/src/interpret
parent642bfb254a851d0deca01d6e2f4db13b60536210 (diff)
parent0d780b108b007c6232ab3cbba8c47822edbbbddd (diff)
downloadrust-0aade2f0de4561823875df84ca79af1017833f48.tar.gz
rust-0aade2f0de4561823875df84ca79af1017833f48.zip
Rollup merge of #117081 - GoodDaisy:master, r=wesleywiser
fix typos in comments
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
-rw-r--r--compiler/rustc_const_eval/src/interpret/eval_context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/eval_context.rs b/compiler/rustc_const_eval/src/interpret/eval_context.rs
index 1202b0030ca..ec0af79459c 100644
--- a/compiler/rustc_const_eval/src/interpret/eval_context.rs
+++ b/compiler/rustc_const_eval/src/interpret/eval_context.rs
@@ -1010,7 +1010,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
             // Just make this an efficient immediate.
             // Note that not calling `layout_of` here does have one real consequence:
             // if the type is too big, we'll only notice this when the local is actually initialized,
-            // which is a bit too late -- we should ideally notice this alreayd here, when the memory
+            // which is a bit too late -- we should ideally notice this already here, when the memory
             // is conceptually allocated. But given how rare that error is and that this is a hot function,
             // we accept this downside for now.
             Operand::Immediate(Immediate::Uninit)