Skip to content

Commit 200c073

Browse files
author
Ellen Arteca
committed
merge upstream miri changes
2 parents 44a8f9c + 9f99aa9 commit 200c073

File tree

354 files changed

+5141
-3091
lines changed

Some content is hidden

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

354 files changed

+5141
-3091
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
# contains package information of crates installed via `cargo install`.
5959
~/.cargo/.crates.toml
6060
~/.cargo/.crates2.json
61-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock', 'cargo-miri/version.rs') }}
61+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock', 'cargo-miri/src/version.rs') }}
6262
restore-keys: ${{ runner.os }}-cargo
6363

6464
- name: Install rustup-toolchain-install-master and xargo

CONTRIBUTING.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -171,19 +171,19 @@ to `.vscode/settings.json` in your local Miri clone:
171171
"env",
172172
"MIRI_AUTO_OPS=no",
173173
"./miri",
174-
"check",
174+
"cargo",
175+
"clippy", // make this `check` when working with a locally built rustc
175176
"--message-format=json"
176177
],
177-
"rust-analyzer.buildScripts.overrideCommand": [
178+
// Contrary to what the name suggests, this also affects proc macros.
179+
"rust-analyzer.cargo.buildScripts.overrideCommand": [
178180
"env",
179181
"MIRI_AUTO_OPS=no",
180182
"./miri",
183+
"cargo",
181184
"check",
182185
"--message-format=json",
183186
],
184-
"rust-analyzer.rustfmt.extraArgs": [
185-
"+nightly"
186-
],
187187
}
188188
```
189189

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,8 @@ environment variable. We first document the most relevant and most commonly used
282282
verbose. `hide` hides the warning entirely.
283283
* `-Zmiri-env-exclude=<var>` keeps the `var` environment variable isolated from the host so that it
284284
cannot be accessed by the program. Can be used multiple times to exclude several variables. The
285-
`TERM` environment variable is excluded by default to [speed up the test
286-
harness](https://github.com/rust-lang/miri/issues/1702). This has no effect unless
287-
`-Zmiri-disable-isolation` is also set.
285+
`TERM` environment variable is excluded by default in Windows to prevent the libtest harness from
286+
accessing the file system. This has no effect unless `-Zmiri-disable-isolation` is also set.
288287
* `-Zmiri-env-forward=<var>` forwards the `var` environment variable to the interpreted program. Can
289288
be used multiple times to forward several variables. This takes precedence over
290289
`-Zmiri-env-exclude`: if a variable is both forwarded and exluced, it *will* get forwarded. This

cargo-miri/Cargo.lock

+55-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cargo-miri/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ edition = "2021"
99

1010
[[bin]]
1111
name = "cargo-miri"
12-
path = "bin.rs"
12+
path = "src/main.rs"
1313
test = false # we have no unit tests
1414
doctest = false # and no doc tests
1515

1616
[dependencies]
1717
directories = "3"
1818
rustc_version = "0.4"
1919
serde_json = "1.0.40"
20+
cargo_metadata = "0.15.0"
2021

2122
# A noop dependency that changes in the Rust repository, it's a bit of a hack.
2223
# See the `src/tools/rustc-workspace-hack/README.md` file in `rust-lang/rust`

0 commit comments

Comments
 (0)