about summary refs log tree commit diff
path: root/src/librustc_driver
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-01-20 10:57:10 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-01-20 11:16:26 -0800
commit953f294ea30253bb5578e3c895d17fcc97c20dce (patch)
treecc42fa7039e21d01ef1dd036a12626526675e510 /src/librustc_driver
parentffd8cb79a2d3da6629c8f54ef9ea9c29bd92fc9e (diff)
downloadrust-953f294ea30253bb5578e3c895d17fcc97c20dce.tar.gz
rust-953f294ea30253bb5578e3c895d17fcc97c20dce.zip
rustc: Remove deprecated flags
This commit removes a number of deprecated flags from the compiler:

* opt-level => -C opt-level
* debuginfo => -C debuginfo
* print-crate-name => --print crate-name
* print-file-name => --print file-names
* no-trans => -Z no-trans
* no-analysis => -Z no-analysis
* parse-only => -Z parse-only
* dep-info => --emit dep-info

This commit also moves the --pretty flag behind `-Z unstable-options` as the
pretty printer will likely not be stable for 1.0

cc #19051
Diffstat (limited to 'src/librustc_driver')
-rw-r--r--src/librustc_driver/lib.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs
index 50ff4546c37..355d8ecf9ff 100644
--- a/src/librustc_driver/lib.rs
+++ b/src/librustc_driver/lib.rs
@@ -154,10 +154,14 @@ fn run_compiler(args: &[String]) {
         return
     }
 
-    let pretty = matches.opt_default("pretty", "normal").map(|a| {
-        // stable pretty-print variants only
-        pretty::parse_pretty(&sess, a.as_slice(), false)
-    });
+    let pretty = if sess.opts.debugging_opts.unstable_options {
+        matches.opt_default("pretty", "normal").map(|a| {
+            // stable pretty-print variants only
+            pretty::parse_pretty(&sess, a.as_slice(), false)
+        })
+    } else {
+        None
+    };
     let pretty = if pretty.is_none() &&
         sess.unstable_options() {
             matches.opt_str("xpretty").map(|a| {