Skip to content

Commit 0f3d72a

Browse files
committed
Auto merge of #116508 - RalfJung:miri, r=RalfJung
Miri subtree update r? `@ghost`
2 parents fc01a74 + a04b7a3 commit 0f3d72a

File tree

90 files changed

+2384
-1813
lines changed

Some content is hidden

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

90 files changed

+2384
-1813
lines changed

Cargo.lock

+42-10
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ dependencies = [
391391
name = "cargo-miri"
392392
version = "0.1.0"
393393
dependencies = [
394-
"cargo_metadata",
394+
"cargo_metadata 0.18.0",
395395
"directories",
396396
"rustc-build-sysroot",
397397
"rustc_tools_util",
@@ -423,6 +423,20 @@ dependencies = [
423423
"thiserror",
424424
]
425425

426+
[[package]]
427+
name = "cargo_metadata"
428+
version = "0.18.0"
429+
source = "registry+https://github.com/rust-lang/crates.io-index"
430+
checksum = "fb9ac64500cc83ce4b9f8dafa78186aa008c8dea77a09b94cd307fd0cd5022a8"
431+
dependencies = [
432+
"camino",
433+
"cargo-platform",
434+
"semver",
435+
"serde",
436+
"serde_json",
437+
"thiserror",
438+
]
439+
426440
[[package]]
427441
name = "cargotest2"
428442
version = "0.1.0"
@@ -551,7 +565,7 @@ name = "clippy_lints"
551565
version = "0.1.75"
552566
dependencies = [
553567
"arrayvec",
554-
"cargo_metadata",
568+
"cargo_metadata 0.15.4",
555569
"clippy_utils",
556570
"declare_clippy_lint",
557571
"if_chain",
@@ -1038,11 +1052,11 @@ dependencies = [
10381052

10391053
[[package]]
10401054
name = "directories"
1041-
version = "4.0.1"
1055+
version = "5.0.1"
10421056
source = "registry+https://github.com/rust-lang/crates.io-index"
1043-
checksum = "f51c5d4ddabd36886dd3e1438cb358cdcb0d7c499cb99cb4ac2e38e18b5cb210"
1057+
checksum = "9a49173b84e034382284f27f1af4dcbbd231ffa358c0fe316541a7337f376a35"
10441058
dependencies = [
1045-
"dirs-sys",
1059+
"dirs-sys 0.4.1",
10461060
]
10471061

10481062
[[package]]
@@ -1051,7 +1065,7 @@ version = "4.0.0"
10511065
source = "registry+https://github.com/rust-lang/crates.io-index"
10521066
checksum = "ca3aa72a6f96ea37bbc5aa912f6788242832f75369bdfdadcb0e38423f100059"
10531067
dependencies = [
1054-
"dirs-sys",
1068+
"dirs-sys 0.3.7",
10551069
]
10561070

10571071
[[package]]
@@ -1075,6 +1089,18 @@ dependencies = [
10751089
"winapi",
10761090
]
10771091

1092+
[[package]]
1093+
name = "dirs-sys"
1094+
version = "0.4.1"
1095+
source = "registry+https://github.com/rust-lang/crates.io-index"
1096+
checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c"
1097+
dependencies = [
1098+
"libc",
1099+
"option-ext",
1100+
"redox_users",
1101+
"windows-sys 0.48.0",
1102+
]
1103+
10781104
[[package]]
10791105
name = "dirs-sys-next"
10801106
version = "0.1.2"
@@ -2664,6 +2690,12 @@ dependencies = [
26642690
"zip",
26652691
]
26662692

2693+
[[package]]
2694+
name = "option-ext"
2695+
version = "0.2.0"
2696+
source = "registry+https://github.com/rust-lang/crates.io-index"
2697+
checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
2698+
26672699
[[package]]
26682700
name = "overload"
26692701
version = "0.1.1"
@@ -4686,7 +4718,7 @@ dependencies = [
46864718
"annotate-snippets",
46874719
"anyhow",
46884720
"bytecount",
4689-
"cargo_metadata",
4721+
"cargo_metadata 0.15.4",
46904722
"clap",
46914723
"diff",
46924724
"dirs",
@@ -5358,7 +5390,7 @@ name = "tidy"
53585390
version = "0.1.0"
53595391
dependencies = [
53605392
"cargo-platform",
5361-
"cargo_metadata",
5393+
"cargo_metadata 0.15.4",
53625394
"ignore",
53635395
"lazy_static",
53645396
"miropt-test-tools",
@@ -5663,7 +5695,7 @@ dependencies = [
56635695
"anyhow",
56645696
"bstr",
56655697
"cargo-platform",
5666-
"cargo_metadata",
5698+
"cargo_metadata 0.15.4",
56675699
"color-eyre",
56685700
"colored",
56695701
"comma",
@@ -5690,7 +5722,7 @@ dependencies = [
56905722
"anyhow",
56915723
"bstr",
56925724
"cargo-platform",
5693-
"cargo_metadata",
5725+
"cargo_metadata 0.15.4",
56945726
"color-eyre",
56955727
"colored",
56965728
"comma",

src/tools/miri/CONTRIBUTING.md

+5-12
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,12 @@ and you can (cross-)run the entire test suite using:
7171
MIRI_TEST_TARGET=i686-unknown-linux-gnu ./miri test
7272
```
7373

74-
If your target doesn't support libstd, you can run miri with
74+
If your target doesn't support libstd that should usually just work. However, if you are using a
75+
custom target file, you might have to set `MIRI_NO_STD=1`.
7576

76-
```
77-
MIRI_NO_STD=1 MIRI_TEST_TARGET=thumbv7em-none-eabihf ./miri test tests/fail/alloc/no_global_allocator.rs
78-
MIRI_NO_STD=1 ./miri run tests/pass/no_std.rs --target thumbv7em-none-eabihf
79-
```
80-
81-
to avoid attempting (and failing) to build libstd. Note that almost no tests will pass
82-
this way, but you can run individual tests.
83-
84-
`./miri test FILTER` only runs those tests that contain `FILTER` in their
85-
filename (including the base directory, e.g. `./miri test fail` will run all
86-
compile-fail tests).
77+
`./miri test FILTER` only runs those tests that contain `FILTER` in their filename (including the
78+
base directory, e.g. `./miri test fail` will run all compile-fail tests). These filters are passed
79+
to `cargo test`, so for multiple filers you need to use `./miri test -- FILTER1 FILTER2`.
8780

8881
You can get a trace of which MIR statements are being executed by setting the
8982
`MIRI_LOG` environment variable. For example:

0 commit comments

Comments
 (0)