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
This commit is contained in:
parent
ffd8cb79a2
commit
953f294ea3
22 changed files with 43 additions and 193 deletions
|
|
@ -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| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue