about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorcuishuang <imcusg@gmail.com>2022-03-03 19:47:23 +0800
committercuishuang <imcusg@gmail.com>2022-03-03 19:47:23 +0800
commit00fffdddd22cdd796cf4261cdbbf830bee7e4f7b (patch)
tree62760ec1b4d7fdf576a82186ad159c7378a7dd1c /compiler/rustc_const_eval/src
parent2f8d1a835b4e7feaf625f74d0d5cb9b84dbc845a (diff)
downloadrust-00fffdddd22cdd796cf4261cdbbf830bee7e4f7b.tar.gz
rust-00fffdddd22cdd796cf4261cdbbf830bee7e4f7b.zip
all: fix some typos
Signed-off-by: cuishuang <imcusg@gmail.com>
Diffstat (limited to 'compiler/rustc_const_eval/src')
-rw-r--r--compiler/rustc_const_eval/src/interpret/operand.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/operand.rs b/compiler/rustc_const_eval/src/interpret/operand.rs
index 716c01ba78c..16870489176 100644
--- a/compiler/rustc_const_eval/src/interpret/operand.rs
+++ b/compiler/rustc_const_eval/src/interpret/operand.rs
@@ -535,7 +535,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
                 let val =
                     self.subst_from_current_frame_and_normalize_erasing_regions(constant.literal)?;
                 // This can still fail:
-                // * During ConstProp, with `TooGeneric` or since the `requried_consts` were not all
+                // * During ConstProp, with `TooGeneric` or since the `required_consts` were not all
                 //   checked yet.
                 // * During CTFE, since promoteds in `const`/`static` initializer bodies can fail.