Closed
Description
It would be great to have a way to run the in-tree Miri on a given file (similar to ./miri run
in the Miri repo). That should even work with the stage 0 Miri, given that Miri's test suite also passes for stage 0.
However, I am not sure what the best x.py
interface for this would look like, and how to integrate it. Cc @Mark-Simulacrum
Activity
Mark-Simulacrum commentedon Sep 13, 2020
Can you point me to documentation or explain what exactly is being asked for here, in particular, I presume
cargo miri run
andcargo miri test
are what we want to do, but I am not sure what those two commands do under the hood. Should I just read https://github.com/rust-lang/miri/blob/master/cargo-miri/bin.rs?jyn514 commentedon Sep 13, 2020
./x.py run rustdoc f.rs
would also be nice as an alias forx.py build src/tools/rustdoc library/std && rustdoc +stage1 f.rs
.RalfJung commentedon Sep 13, 2020
@Mark-Simulacrum basically, it should do the equivalent of this. Up until here, it's basically the same as what happens for testing, but then the final step "Run
cargo test
" needs to be replaced by running the Miri driver binary instead. I'm happy to help with that part.camelid commentedon Apr 13, 2021
It would be nice if we had this for rustdoc, which would let people get around the issue described here. Something like
./x.py run rustdoc
.Rollup merge of rust-lang#104046 - RalfJung:run-miri-run, r=oli-obk
Rollup merge of rust-lang#104046 - RalfJung:run-miri-run, r=oli-obk
Rollup merge of rust-lang#104046 - RalfJung:run-miri-run, r=oli-obk
3 remaining items