about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorCamelid <37223377+camelid@users.noreply.github.com>2020-09-22 13:52:05 -0700
committerGitHub <noreply@github.com>2020-09-22 22:52:05 +0200
commit08162cbd1e4c72869a23141827e953055f8a1475 (patch)
tree2e68912cadc80137ed925ee28f8a4c5c1dbd86f4 /src/doc/rustc-dev-guide
parent0d195f113bff1891bb27b961ff8bdfb4b0d2f44c (diff)
downloadrust-08162cbd1e4c72869a23141827e953055f8a1475.tar.gz
rust-08162cbd1e4c72869a23141827e953055f8a1475.zip
`ConstEvalResult` is now `EvalToConstValueResult` (#885)
Also fixed typo.
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/const-eval.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/const-eval.md b/src/doc/rustc-dev-guide/src/const-eval.md
index 2a5c5d2f975..d21d0ea5817 100644
--- a/src/doc/rustc-dev-guide/src/const-eval.md
+++ b/src/doc/rustc-dev-guide/src/const-eval.md
@@ -28,7 +28,7 @@ in which the constant is evaluated (e.g. the function within which the constant
 and a [`GlobalId`]. The `GlobalId` is made up of an `Instance` referring to a constant
 or static or of an `Instance` of a function and an index into the function's `Promoted` table.
 
-Constant evaluation returns a [`ConstEvalResult`] with either the error, or the a
+Constant evaluation returns a [`EvalToConstValueResult`] with either the error, or a
 representation of the constant. `static` initializers are always represented as
 [`miri`](./miri.html) virtual memory allocations (via [`ConstValue::ByRef`]).
 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
 [`ConstValue::Scalar`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/interpret/value/enum.ConstValue.html#variant.Scalar
 [`ConstValue::Slice`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/interpret/value/enum.ConstValue.html#variant.Slice
 [`ConstValue::ByRef`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/interpret/value/enum.ConstValue.html#variant.ByRef
-[`ConstEvalResult`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/interpret/error/type.ConstEvalResult.html
+[`EvalToConstValueResult`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/interpret/error/type.EvalToConstValueResult.html
 [`eval_const_to_op`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/interpret/struct.InterpCx.html#method.eval_const_to_op