File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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
2828and a [ ` GlobalId ` ] . The ` GlobalId ` is made up of an ` Instance ` referring to a constant
2929or 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
3232representation of the constant. ` static ` initializers are always represented as
3333[ ` miri ` ] ( ./miri.html ) virtual memory allocations (via [ ` ConstValue::ByRef ` ] ).
3434Other 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
You can’t perform that action at this time.
0 commit comments