Merge pull request #266 from rchaser53/fix-miri
fix unwrap_u64 and to_raw_bits
This commit is contained in:
commit
4fbf0b9cd4
|
|
@ -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
|
refers to a virtual allocation. These allocations can be accessed via the
|
||||||
methods on `tcx.interpret_interner`.
|
methods on `tcx.interpret_interner`.
|
||||||
|
|
||||||
If you are expecting a numeric result, you can use `unwrap_u64` (panics on
|
If you are expecting a numeric result, you can use `unwrap_usize` (panics on
|
||||||
anything that can't be representad as a `u64`) or `to_raw_bits` which results
|
anything that can't be representad as a `u64`) or `assert_usize` which results
|
||||||
in an `Option<u128>` yielding the `Scalar` if possible.
|
in an `Option<u128>` yielding the `Scalar` if possible.
|
||||||
|
|
||||||
## Allocations
|
## Allocations
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue