Skip to content

Commit 260fb31

Browse files
committed
Add missing unpretty option help message
1 parent 1d029c6 commit 260fb31

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/librustc/session/config.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -1342,10 +1342,15 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
13421342
unpretty: Option<String> = (None, parse_unpretty, [UNTRACKED],
13431343
"Present the input source, unstable (and less-pretty) variants;
13441344
valid types are any of the types for `--pretty`, as well as:
1345+
`expanded`, `expanded,identified`,
1346+
`expanded,hygiene` (with internal representations),
13451347
`flowgraph=<nodeid>` (graphviz formatted flowgraph for node),
1348+
`flowgraph,unlabelled=<nodeid>` (unlabelled graphviz formatted flowgraph for node),
13461349
`everybody_loops` (all function bodies replaced with `loop {}`),
1347-
`hir` (the HIR), `hir,identified`, or
1348-
`hir,typed` (HIR with types for each node)."),
1350+
`hir` (the HIR), `hir,identified`,
1351+
`hir,typed` (HIR with types for each node),
1352+
`hir-tree` (dump the raw HIR),
1353+
`mir` (the MIR), or `mir-cfg` (graphviz formatted MIR)"),
13491354
run_dsymutil: Option<bool> = (None, parse_opt_bool, [TRACKED],
13501355
"run `dsymutil` and delete intermediate object files"),
13511356
ui_testing: bool = (false, parse_bool, [UNTRACKED],

src/librustc_driver/pretty.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ pub fn parse_pretty(sess: &Session,
123123
sess.fatal(&format!("argument to `unpretty` must be one of `normal`, \
124124
`expanded`, `flowgraph[,unlabelled]=<nodeid>`, \
125125
`identified`, `expanded,identified`, `everybody_loops`, \
126-
`hir`, `hir,identified`, `hir,typed`, or `mir`; got {}",
126+
`hir`, `hir,identified`, `hir,typed`, `hir-tree`, \
127+
`mir` or `mir-cfg`; got {}",
127128
name));
128129
} else {
129130
sess.fatal(&format!("argument to `pretty` must be one of `normal`, `expanded`, \

0 commit comments

Comments
 (0)