Skip to content

Commit 1daa5ce

Browse files
author
The rustc-dev-guide Cronjob Bot
committed
Merge from rustc
2 parents 6f2a78e + 862c774 commit 1daa5ce

File tree

582 files changed

+927
-1073
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

582 files changed

+927
-1073
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,11 @@ environment variable. We first document the most relevant and most commonly used
286286
specific circumstances, but Miri's behavior will also be more stable across versions and targets.
287287
This is equivalent to `-Zmiri-fixed-schedule -Zmiri-compare-exchange-weak-failure-rate=0.0
288288
-Zmiri-address-reuse-cross-thread-rate=0.0 -Zmiri-disable-weak-memory-emulation`.
289+
* `-Zmiri-deterministic-floats` makes Miri's floating-point behavior fully deterministic. This means
290+
that operations will always return the preferred NaN, imprecise operations will not have any
291+
random error applied to them, and `min`/`max` as "maybe fused" multiply-add all behave
292+
deterministically. Note that Miri still uses host floats for some operations, so behavior can
293+
still differ depending on the host target and setup.
289294
* `-Zmiri-disable-isolation` disables host isolation. As a consequence,
290295
the program has access to host resources such as environment variables, file
291296
systems, and randomness.

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c6768de2d63de7a41124a0fb8fc78f9e26111c01
1+
0cbc0764380630780a275c437260e4d4d5f28c92

src/bin/miri.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,8 @@ fn main() {
601601
miri_config.collect_leak_backtraces = false;
602602
} else if arg == "-Zmiri-force-intrinsic-fallback" {
603603
miri_config.force_intrinsic_fallback = true;
604+
} else if arg == "-Zmiri-deterministic-floats" {
605+
miri_config.float_nondet = false;
604606
} else if arg == "-Zmiri-strict-provenance" {
605607
miri_config.provenance_mode = ProvenanceMode::Strict;
606608
} else if arg == "-Zmiri-permissive-provenance" {

0 commit comments

Comments
 (0)