]> git.lizzy.rs Git - rust.git/commitdiff
Rename the unstable option `--xpretty` to `--unpretty`
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Wed, 29 Jul 2015 23:33:38 +0000 (01:33 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Wed, 29 Jul 2015 23:33:38 +0000 (01:33 +0200)
(Inspired by discussion with Gankro.)

src/librustc/session/config.rs
src/librustc_driver/lib.rs
src/librustc_driver/pretty.rs
src/test/run-make/graphviz-flowgraph/Makefile

index 260c85d4d34f237e5bc74d9d298811a2135e1ac4..f74bb9ee89ad080d6620c562a2fd73fc9c56f485 100644 (file)
@@ -828,8 +828,8 @@ pub fn rustc_optgroups() -> Vec<RustcOptGroup> {
                    `typed` (crates expanded, with type annotations), or
                    `expanded,identified` (fully parenthesized, AST nodes with IDs).",
                  "TYPE"),
-        opt::flagopt_u("", "xpretty",
-                     "Pretty-print the input instead of compiling, unstable variants;
+        opt::flagopt_u("", "unpretty",
+                     "Present the input source, unstable (and less-pretty) variants;
                       valid types are any of the types for `--pretty`, as well as:
                       `flowgraph=<nodeid>` (graphviz formatted flowgraph for node), or
                       `everybody_loops` (all function bodies replaced with `loop {}`).",
index 873950b0be893a9f93c835af860cf7413266a6e9..13d7c7b41a01a6546cad8c6b447321adb8cea08a 100644 (file)
@@ -339,7 +339,7 @@ fn parse_pretty(&mut self,
             None
         };
         if pretty.is_none() && sess.unstable_options() {
-            matches.opt_str("xpretty").map(|a| {
+            matches.opt_str("unpretty").map(|a| {
                 // extended with unstable pretty-print variants
                 pretty::parse_pretty(sess, &a, true)
             })
index 0e735cbb7ff8ebabea7d1761de84c44c3acad2f1..818ce005d4c034bfe972d270d80a8bc107bb70c2 100644 (file)
@@ -60,7 +60,7 @@ pub enum PpSourceMode {
 pub enum PpFlowGraphMode {
     Default,
     /// Drops the labels from the edges in the flowgraph output. This
-    /// is mostly for use in the --xpretty flowgraph run-make tests,
+    /// is mostly for use in the --unpretty flowgraph run-make tests,
     /// since the labels are largely uninteresting in those cases and
     /// have become a pain to maintain.
     UnlabelledEdges,
@@ -90,7 +90,7 @@ pub fn parse_pretty(sess: &Session,
         _ => {
             if extended {
                 sess.fatal(&format!(
-                    "argument to `xpretty` must be one of `normal`, \
+                    "argument to `unpretty` must be one of `normal`, \
                      `expanded`, `flowgraph[,unlabelled]=<nodeid>`, `typed`, `identified`, \
                      `expanded,identified`, or `everybody_loops`; got {}", name));
             } else {
index 1533729de945f9b27bdf6f7fc44364fabcd55170..5740a36359c9cdf428353d954625af488b064d92 100644 (file)
@@ -28,7 +28,7 @@ $(TMPDIR)/%.pp: %.rs
 
 $(TMPDIR)/%.dot: %.rs
        $(eval $(call FIND_LAST_BLOCK,$<))
-       $(RUSTC_LIB) -Z unstable-options --xpretty flowgraph,unlabelled=$(LASTBLOCKNUM_$<) $< -o $@.tmp
+       $(RUSTC_LIB) -Z unstable-options --unpretty flowgraph,unlabelled=$(LASTBLOCKNUM_$<) $< -o $@.tmp
        cat $@.tmp | sed -e 's@ (id=[0-9]*)@@g' \
                          -e 's@\[label=""\]@@' \
                          -e 's@digraph [a-zA-Z0-9_]* @digraph block @' \