diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-01-22 09:25:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-22 09:25:17 +0100 |
| commit | 5d9d8fd4bf6f1261a75dc2f18d1f1c8c6018e940 (patch) | |
| tree | 90687bd4422a1744c434121b13a7e94f08c77315 /src/doc/rustc-dev-guide | |
| parent | b750802ba1383b4d14afde94b67168807a7f35ab (diff) | |
| parent | ca84da549237f6eaea47fc25aa2b0d4a5f4ae91e (diff) | |
| download | rust-5d9d8fd4bf6f1261a75dc2f18d1f1c8c6018e940.tar.gz rust-5d9d8fd4bf6f1261a75dc2f18d1f1c8c6018e940.zip | |
Merge pull request #266 from rchaser53/fix-miri
fix unwrap_u64 and to_raw_bits
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/miri.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/miri.md b/src/doc/rustc-dev-guide/src/miri.md index cbed690eb87..d361103f20f 100644 --- a/src/doc/rustc-dev-guide/src/miri.md +++ b/src/doc/rustc-dev-guide/src/miri.md @@ -89,8 +89,8 @@ pointers or two element tuples) or `ByRef`, which is used for anything else and refers to a virtual allocation. These allocations can be accessed via the methods on `tcx.interpret_interner`. -If you are expecting a numeric result, you can use `unwrap_u64` (panics on -anything that can't be representad as a `u64`) or `to_raw_bits` which results +If you are expecting a numeric result, you can use `unwrap_usize` (panics on +anything that can't be representad as a `u64`) or `assert_usize` which results in an `Option<u128>` yielding the `Scalar` if possible. ## Allocations |
