File tree 3 files changed +11
-5
lines changed
compiler/rustc_middle/src/mir/interpret
3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,11 @@ impl<Prov> Scalar<Prov> {
196
196
Self :: from_int ( i, Size :: from_bits ( 64 ) )
197
197
}
198
198
199
+ #[ inline]
200
+ pub fn from_i128 ( i : i128 ) -> Self {
201
+ Self :: from_int ( i, Size :: from_bits ( 128 ) )
202
+ }
203
+
199
204
#[ inline]
200
205
pub fn from_target_isize ( i : i64 , cx : & impl HasDataLayout ) -> Self {
201
206
Self :: from_int ( i, cx. data_layout ( ) . pointer_size )
Original file line number Diff line number Diff line change 389
389
# a Nix toolchain on non-NixOS distributions.
390
390
# patch-binaries-for-nix = false
391
391
392
- # Collect information and statistics about the current build and writes it to
393
- # disk. Enabling this or not has no impact on the resulting build output. The
392
+ # Collect information and statistics about the current build, and write it to
393
+ # disk. Enabling this has no impact on the resulting build output. The
394
394
# schema of the file generated by the build metrics feature is unstable, and
395
395
# this is not intended to be used during local development.
396
396
# metrics = false
Original file line number Diff line number Diff line change @@ -59,17 +59,18 @@ check-aux:
59
59
library/alloc \
60
60
--no-doc
61
61
# Some doctests have intentional memory leaks.
62
+ # Some use file system operations to demonstrate dealing with `Result`.
62
63
$(Q ) MIRIFLAGS=" -Zmiri-ignore-leaks -Zmiri-disable-isolation" \
63
64
$(BOOTSTRAP ) miri --stage 2 \
64
65
library/core \
65
66
library/alloc \
66
67
--doc
67
- # In `std` we cannot test everything.
68
- $(Q ) MIRIFLAGS=" -Zmiri-disable-isolation" BOOTSTRAP_SKIP_TARGET_SANITY=1 \
68
+ # In `std` we cannot test everything, so we skip some modules .
69
+ $(Q ) MIRIFLAGS=" -Zmiri-disable-isolation" \
69
70
$(BOOTSTRAP ) miri --stage 2 library/std \
70
71
--no-doc -- \
71
72
--skip fs:: --skip net:: --skip process:: --skip sys::pal::
72
- $(Q ) MIRIFLAGS=" -Zmiri-ignore-leaks -Zmiri-disable-isolation" BOOTSTRAP_SKIP_TARGET_SANITY=1 \
73
+ $(Q ) MIRIFLAGS=" -Zmiri-ignore-leaks -Zmiri-disable-isolation" \
73
74
$(BOOTSTRAP ) miri --stage 2 library/std \
74
75
--doc -- \
75
76
--skip fs:: --skip net:: --skip process:: --skip sys::pal::
You can’t perform that action at this time.
0 commit comments