Skip to content

Improve the usage message for -Z dump-mir. - #56597

Merged
bors merged 1 commit into
rust-lang:masterfrom
vext01:dump-mir-usage
Dec 8, 2018
Merged

Improve the usage message for -Z dump-mir.#56597
bors merged 1 commit into
rust-lang:masterfrom
vext01:dump-mir-usage

Conversation

@vext01

Copy link
Copy Markdown
Contributor

Ouput now looks like this:

$ rustc -Z help
...
-Z arg-align-attributes -- emit align metadata for reference arguments
-Z dump-mir=val -- dump MIR state to file.
`val` is used to select which passes and functions to dump. For example:
`all` matches all passes and functions,
`foo` matches all passes for functions whose name contains 'foo',
`foo & ConstProp` only the 'ConstProp' pass for function names containing 'foo',
`foo | bar` all passes for function names containing 'foo' or 'bar'.
-Z dump-mir-dir=val -- the directory the MIR is dumped into
...

Fixes#56558

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @matthewjasper

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 7, 2018
@wesleywiser

Copy link
Copy Markdown
Member

Thanks!

@bors r+ rollup

@bors

bors commented Dec 7, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit 5f9f05d has been approved by wesleywiser

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 7, 2018
Centril added a commit to Centril/rust that referenced this pull request Dec 8, 2018
Improve the usage message for `-Z dump-mir`.
Ouput now looks like this:
```
$ rustc -Z help
...
-Z arg-align-attributes -- emit align metadata for reference arguments
-Z dump-mir=val -- dump MIR state to file.
`val` is used to select which passes and functions to dump. For example:
`all` matches all passes and functions,
`foo` matches all passes for functions whose name contains 'foo',
`foo & ConstProp` only the 'ConstProp' pass for function names containing 'foo',
`foo | bar` all passes for function names containing 'foo' or 'bar'.
-Z dump-mir-dir=val -- the directory the MIR is dumped into
...
```
Fixesrust-lang#56558
@CentrilCentril mentioned this pull request Dec 8, 2018
bors added a commit that referenced this pull request Dec 8, 2018
Rollup of 6 pull requests
Successful merges:
- #56248 (Suggest an appropriate token when encountering `pub Ident<'a>`)
- #56597 (Improve the usage message for `-Z dump-mir`.)
- #56599 (codegen: Fix va_list - aarch64 iOS/Windows)
- #56602 (Fix the just-introduced ptr::hash docs)
- #56620 (resolve: Reduce some clutter in import ambiguity errors)
- #56621 (Add missing comma in Generators)
Failed merges:
r? @ghost
@bors
bors merged commit 5f9f05d into rust-lang:masterDec 8, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@vext01@rust-highfive@wesleywiser@bors@matthewjasper