]> git.lizzy.rs Git - rust.git/commitdiff
Add missing unpretty option help message
authorHirokazu Hata <h.hata.ai.t@gmail.com>
Mon, 14 Jan 2019 15:09:21 +0000 (00:09 +0900)
committerHirokazu Hata <h.hata.ai.t@gmail.com>
Tue, 15 Jan 2019 09:32:18 +0000 (18:32 +0900)
src/librustc/session/config.rs
src/librustc_driver/pretty.rs

index 42adc6a87fdba2a5ffc0803f250817213456b24e..03dbd7b54e1e3fddf80021c0ac5105b82b19c549 100644 (file)
@@ -1342,10 +1342,15 @@ fn parse_cross_lang_lto(slot: &mut CrossLangLto, v: Option<&str>) -> bool {
     unpretty: Option<String> = (None, parse_unpretty, [UNTRACKED],
         "Present the input source, unstable (and less-pretty) variants;
         valid types are any of the types for `--pretty`, as well as:
+        `expanded`, `expanded,identified`,
+        `expanded,hygiene` (with internal representations),
         `flowgraph=<nodeid>` (graphviz formatted flowgraph for node),
+        `flowgraph,unlabelled=<nodeid>` (unlabelled graphviz formatted flowgraph for node),
         `everybody_loops` (all function bodies replaced with `loop {}`),
-        `hir` (the HIR), `hir,identified`, or
-        `hir,typed` (HIR with types for each node)."),
+        `hir` (the HIR), `hir,identified`,
+        `hir,typed` (HIR with types for each node),
+        `hir-tree` (dump the raw HIR),
+        `mir` (the MIR), or `mir-cfg` (graphviz formatted MIR)"),
     run_dsymutil: Option<bool> = (None, parse_opt_bool, [TRACKED],
         "run `dsymutil` and delete intermediate object files"),
     ui_testing: bool = (false, parse_bool, [UNTRACKED],
index a9ec99358c1b2420d8b06ff4c1f5821d22bcbd4f..dfd7a14a86435d7e8845f6dd71a251aa14a39182 100644 (file)
@@ -123,7 +123,8 @@ pub fn parse_pretty(sess: &Session,
                 sess.fatal(&format!("argument to `unpretty` must be one of `normal`, \
                                      `expanded`, `flowgraph[,unlabelled]=<nodeid>`, \
                                      `identified`, `expanded,identified`, `everybody_loops`, \
-                                     `hir`, `hir,identified`, `hir,typed`, or `mir`; got {}",
+                                     `hir`, `hir,identified`, `hir,typed`, `hir-tree`, \
+                                     `mir` or `mir-cfg`; got {}",
                                     name));
             } else {
                 sess.fatal(&format!("argument to `pretty` must be one of `normal`, `expanded`, \