diff options
| author | Edd Barrett <vext01@gmail.com> | 2018-12-07 14:48:16 +0000 |
|---|---|---|
| committer | Edd Barrett <vext01@gmail.com> | 2018-12-07 14:48:16 +0000 |
| commit | 5f9f05daeadbef38c76ed0ba2fbc53fb4fb63047 (patch) | |
| tree | 4e10319e40c61c0ad9748d7d2cdae88e9ca291e1 /src/librustc/session | |
| parent | 15a2607863fded7570cacfc7825702dde5a4234c (diff) | |
| download | rust-5f9f05daeadbef38c76ed0ba2fbc53fb4fb63047.tar.gz rust-5f9f05daeadbef38c76ed0ba2fbc53fb4fb63047.zip | |
Improve the usage message for `-Z dump-mir`.
Diffstat (limited to 'src/librustc/session')
| -rw-r--r-- | src/librustc/session/config.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index f1ddcda823e..217e89a64d4 100644 --- a/src/librustc/session/config.rs +++ b/src/librustc/session/config.rs @@ -1272,7 +1272,13 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options, arg_align_attributes: bool = (false, parse_bool, [TRACKED], "emit align metadata for reference arguments"), dump_mir: Option<String> = (None, parse_opt_string, [UNTRACKED], - "dump MIR state at various points in transforms"), + "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'."), + dump_mir_dir: String = (String::from("mir_dump"), parse_string, [UNTRACKED], "the directory the MIR is dumped into"), dump_mir_graphviz: bool = (false, parse_bool, [UNTRACKED], |
