Closed RalfJung closed 5 months ago
@bors r+
:pushpin: Commit d23df545a4403708a4dfea2f6285f51a4c551e23 has been approved by RalfJung
It is now in the queue for this repository.
:hourglass: Testing commit d23df545a4403708a4dfea2f6285f51a4c551e23 with merge 5e9a025ef173c5e8df83d5fecb3114413fcf002f...
:broken_heart: Test failed - checks-actions
Closing in favor of https://github.com/rust-lang/miri/pull/3411 which is just the cargo-miri changes without the rustup. (That won't make it work, but it makes more sense to keep that around as a draft.)
This uses a different approach to resolve https://github.com/rust-lang/miri/issues/3404: we entirely move the responsibility of setting miri-sysroot to whatever invokes the Miri driver. cargo-miri knows whether it is inside rustdoc or not and can adjust accordingly. I previously avoided doing that because there are a bunch of places that are invoking the driver (cargo-miri, the ui test suite,
./miri run
,./x.py run miri
) and they all need to be adjusted now. But it is also somewhat less fragile as we usually have more information there -- and we can just decide that./miri run file.rs --sysroot path
is not supported.