Skip to content

Support ./x.py run miri #76666

Closed
Closed
@RalfJung

Description

@RalfJung
Member

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

added
T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
on Sep 13, 2020
Mark-Simulacrum

Mark-Simulacrum commented on Sep 13, 2020

@Mark-Simulacrum
Member

Can you point me to documentation or explain what exactly is being asked for here, in particular, I presume cargo miri run and cargo 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?

added
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.
on Sep 13, 2020
jyn514

jyn514 commented on Sep 13, 2020

@jyn514
Member

./x.py run rustdoc f.rs would also be nice as an alias for x.py build src/tools/rustdoc library/std && rustdoc +stage1 f.rs.

RalfJung

RalfJung commented on Sep 13, 2020

@RalfJung
MemberAuthor

@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

camelid commented on Apr 13, 2021

@camelid
Member

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.

added a commit that references this issue on Nov 10, 2022

Rollup merge of rust-lang#104046 - RalfJung:run-miri-run, r=oli-obk

81405ad
added a commit that references this issue on Nov 10, 2022

Rollup merge of rust-lang#104046 - RalfJung:run-miri-run, r=oli-obk

60d20b1
added a commit that references this issue on Nov 10, 2022

Rollup merge of rust-lang#104046 - RalfJung:run-miri-run, r=oli-obk

7124590

3 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-miriArea: The miri toolC-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @RalfJung@Mark-Simulacrum@jyn514@camelid

      Issue actions

        Support `./x.py run miri` · Issue #76666 · rust-lang/rust