File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ in which the constant is evaluated (e.g. the function within which the constant
28
28
and a [ ` GlobalId ` ] . The ` GlobalId ` is made up of an ` Instance ` referring to a constant
29
29
or static or of an ` Instance ` of a function and an index into the function's ` Promoted ` table.
30
30
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
32
32
representation of the constant. ` static ` initializers are always represented as
33
33
[ ` miri ` ] ( ./miri.html ) virtual memory allocations (via [ ` ConstValue::ByRef ` ] ).
34
34
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
41
41
[ `ConstValue::Scalar` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/interpret/value/enum.ConstValue.html#variant.Scalar
42
42
[ `ConstValue::Slice` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/interpret/value/enum.ConstValue.html#variant.Slice
43
43
[ `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
45
45
[ `eval_const_to_op` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/interpret/struct.InterpCx.html#method.eval_const_to_op
You can’t perform that action at this time.
0 commit comments