Skip to content

Commit b89d7d6

Browse files
committed
Auto merge of rust-lang#115496 - RalfJung:miri, r=RalfJung
update Miri There were conflicts on the last pull, so make sure it's all in sync both ways r? `@ghost`
2 parents 7cc5ac2 + f2568c8 commit b89d7d6

File tree

4 files changed

+16
-18
lines changed

4 files changed

+16
-18
lines changed

src/tools/miri/README.md

+13-15
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ program, no matter your host OS. This is particularly useful if you are using
156156
Windows, as the Linux target is much better supported than Windows targets.
157157

158158
You can also use this to test platforms with different properties than your host
159-
platform. For example `cargo miri test --target mips64-unknown-linux-gnuabi64`
159+
platform. For example `cargo miri test --target s390x-unknown-linux-gnu`
160160
will run your test suite on a big-endian target, which is useful for testing
161161
endian-sensitive code.
162162

@@ -220,20 +220,18 @@ using `--target`!
220220
The following targets are tested on CI and thus should always work (to the
221221
degree documented below):
222222

223-
- The best-supported target is `x86_64-unknown-linux-gnu`. Miri releases are
224-
blocked on things working with this target. Most other Linux targets should
225-
also work well; we do run the test suite on `i686-unknown-linux-gnu` as a
226-
32bit target and `mips64-unknown-linux-gnuabi64` as a big-endian target, as
227-
well as the ARM targets `aarch64-unknown-linux-gnu` and
228-
`arm-unknown-linux-gnueabi`.
229-
- `x86_64-apple-darwin` should work basically as well as Linux. We also test
230-
`aarch64-apple-darwin`. However, we might ship Miri with a nightly even when
231-
some features on these targets regress.
232-
- `x86_64-pc-windows-msvc` works, but supports fewer features than the Linux and
233-
Apple targets. For example, file system access and concurrency are not
234-
supported on Windows. We also test `i686-pc-windows-msvc`, with the same
235-
reduced feature set. We might ship Miri with a nightly even when some features
236-
on these targets regress.
223+
- All Rust [Tier 1 targets](https://doc.rust-lang.org/rustc/platform-support.html) are supported by
224+
Miri. They are all checked on Miri's CI, and some (at least one per OS) are even checked on every
225+
Rust PR, so the shipped Miri should always work on these targets.
226+
- We also support `s390x-unknown-linux-gnu` as our "big-endian target of choice".
227+
- For every other target with OS `linux`, `macos`, or `windows`, Miri should generally work, but we
228+
make no promises.
229+
- For targets on other operating systems, even basic operations such as printing to the standard
230+
output might not work, and Miri might fail before even reaching the `main` function.
231+
232+
However, even for targets that we do support, the degree of support for accessing platform APIs
233+
(such as the file system) differs between targets: generally, Linux targets have the best support,
234+
and macOS targets are usually on par. Windows is supported less well.
237235

238236
### Running tests in parallel
239237

src/tools/miri/ci.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ case $HOST_TARGET in
116116
MIRI_TEST_TARGET=tests/avr.json MIRI_NO_STD=1 run_tests_minimal no_std # JSON target file
117117
;;
118118
x86_64-apple-darwin)
119-
MIRI_TEST_TARGET=mips64-unknown-linux-gnuabi64 run_tests # big-endian architecture
119+
MIRI_TEST_TARGET=s390x-unknown-linux-gnu run_tests # big-endian architecture
120120
MIRI_TEST_TARGET=x86_64-pc-windows-msvc run_tests
121121
;;
122122
i686-pc-windows-msvc)

src/tools/miri/miri-script/src/commands.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ impl Command {
510510

511511
let mut cmd = cmd!(
512512
e.sh,
513-
"rustfmt +{toolchain} --edition=2021 --config-path {config_path} {flags...}"
513+
"rustfmt +{toolchain} --edition=2021 --config-path {config_path} --unstable-features --skip-children {flags...}"
514514
);
515515
eprintln!("$ {cmd} ...");
516516

src/tools/miri/rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dca2d1ff00bf96d244b1bb9a2117a92ec50ac71d
1+
a989e25f1b87949a886eab3da10324d14189fe95

0 commit comments

Comments
 (0)