Skip to content

Commit 9c8a269

Browse files
committed
Auto merge of #117579 - RalfJung:miri, r=RalfJung
Miri subtree update r? `@ghost`
2 parents f81d6f0 + 2ef639d commit 9c8a269

File tree

99 files changed

+574
-255
lines changed

Some content is hidden

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

99 files changed

+574
-255
lines changed

src/tools/miri/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,10 @@ degree documented below):
223223
- All Rust [Tier 1 targets](https://doc.rust-lang.org/rustc/platform-support.html) are supported by
224224
Miri. They are all checked on Miri's CI, and some (at least one per OS) are even checked on every
225225
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".
226+
- `aarch64-apple-darwin` is supported.
227+
- `s390x-unknown-linux-gnu` is supported as our "big-endian target of choice".
227228
- For every other target with OS `linux`, `macos`, or `windows`, Miri should generally work, but we
228-
make no promises.
229+
make no promises and we don't run tests for such targets.
229230
- For targets on other operating systems, even basic operations such as printing to the standard
230231
output might not work, and Miri might fail before even reaching the `main` function.
231232

src/tools/miri/rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2e4e2a8f288f642cafcc41fff211955ceddc453d
1+
3aaa0f57b7b877ef58532a8de075d1e5a79142bf

src/tools/miri/src/bin/miri.rs

+13-5
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ fn run_compiler(
241241
mut args: Vec<String>,
242242
target_crate: bool,
243243
callbacks: &mut (dyn rustc_driver::Callbacks + Send),
244-
using_internal_features: std::sync::Arc<std::sync::atomic::AtomicBool>
244+
using_internal_features: std::sync::Arc<std::sync::atomic::AtomicBool>,
245245
) -> ! {
246246
if target_crate {
247247
// Miri needs a custom sysroot for target crates.
@@ -275,7 +275,8 @@ fn run_compiler(
275275
// Invoke compiler, and handle return code.
276276
let exit_code = rustc_driver::catch_with_exit_code(move || {
277277
rustc_driver::RunCompiler::new(&args, callbacks)
278-
.set_using_internal_features(using_internal_features).run()
278+
.set_using_internal_features(using_internal_features)
279+
.run()
279280
});
280281
std::process::exit(exit_code)
281282
}
@@ -297,7 +298,8 @@ fn main() {
297298
// If the environment asks us to actually be rustc, then do that.
298299
if let Some(crate_kind) = env::var_os("MIRI_BE_RUSTC") {
299300
// Earliest rustc setup.
300-
let using_internal_features = rustc_driver::install_ice_hook(rustc_driver::DEFAULT_BUG_REPORT_URL, |_| ());
301+
let using_internal_features =
302+
rustc_driver::install_ice_hook(rustc_driver::DEFAULT_BUG_REPORT_URL, |_| ());
301303
rustc_driver::init_rustc_env_logger(&handler);
302304

303305
let target_crate = if crate_kind == "target" {
@@ -318,7 +320,8 @@ fn main() {
318320
}
319321

320322
// Add an ICE bug report hook.
321-
let using_internal_features = rustc_driver::install_ice_hook("https://github.com/rust-lang/miri/issues/new", |_| ());
323+
let using_internal_features =
324+
rustc_driver::install_ice_hook("https://github.com/rust-lang/miri/issues/new", |_| ());
322325

323326
// Init loggers the Miri way.
324327
init_early_loggers(&handler);
@@ -581,5 +584,10 @@ fn main() {
581584

582585
debug!("rustc arguments: {:?}", rustc_args);
583586
debug!("crate arguments: {:?}", miri_config.args);
584-
run_compiler(rustc_args, /* target_crate: */ true, &mut MiriCompilerCalls { miri_config }, using_internal_features)
587+
run_compiler(
588+
rustc_args,
589+
/* target_crate: */ true,
590+
&mut MiriCompilerCalls { miri_config },
591+
using_internal_features,
592+
)
585593
}

0 commit comments

Comments
 (0)