Skip to content

Commit 2a09b06

Browse files
authored
ConstEvalResult is now EvalToConstValueResult (#885)
Also fixed typo.
1 parent 4470641 commit 2a09b06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/const-eval.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ in which the constant is evaluated (e.g. the function within which the constant
2828
and a [`GlobalId`]. The `GlobalId` is made up of an `Instance` referring to a constant
2929
or static or of an `Instance` of a function and an index into the function's `Promoted` table.
3030

31-
Constant evaluation returns a [`ConstEvalResult`] with either the error, or the a
31+
Constant evaluation returns a [`EvalToConstValueResult`] with either the error, or a
3232
representation of the constant. `static` initializers are always represented as
3333
[`miri`](./miri.html) virtual memory allocations (via [`ConstValue::ByRef`]).
3434
Other constants get represented as [`ConstValue::Scalar`]
@@ -41,5 +41,5 @@ If you need the value of a constant inside Miri, you need to directly work with
4141
[`ConstValue::Scalar`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/interpret/value/enum.ConstValue.html#variant.Scalar
4242
[`ConstValue::Slice`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/interpret/value/enum.ConstValue.html#variant.Slice
4343
[`ConstValue::ByRef`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/interpret/value/enum.ConstValue.html#variant.ByRef
44-
[`ConstEvalResult`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/interpret/error/type.ConstEvalResult.html
44+
[`EvalToConstValueResult`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/interpret/error/type.EvalToConstValueResult.html
4545
[`eval_const_to_op`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/interpret/struct.InterpCx.html#method.eval_const_to_op

0 commit comments

Comments
 (0)