Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustc: Remove deprecated lints and flags #21441

Merged
merged 2 commits into from
Jan 22, 2015
Merged

Conversation

alexcrichton
Copy link
Member

This is a bit of cleanup work to clean out some old deprecated flags and deprecated lint names from the compiler (they've been deprecated for quite awhile now).

This also notably puts --pretty behind the -Z unstable-options flag (where it was supposed to be previously).

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 rust-lang#19051
These were all renamed quite some time ago, so remove their old names from the
compiler.
@rust-highfive
Copy link
Collaborator

r? @nick29581

(rust_highfive has picked a reviewer for you, use r? to override)

@nrc
Copy link
Member

nrc commented Jan 20, 2015

@bors r+ 64914d9

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Jan 21, 2015
This is a bit of cleanup work to clean out some old deprecated flags and deprecated lint names from the compiler (they've been deprecated for quite awhile now).

This also notably puts `--pretty` behind the `-Z unstable-options` flag (where it was supposed to be previously).
@bors bors merged commit 64914d9 into rust-lang:master Jan 22, 2015
@alexcrichton alexcrichton deleted the rustc-opts branch February 4, 2015 18:04
kaffarell added a commit to kaffarell/neovim that referenced this pull request May 29, 2024
The `--pretty` and `--xpretty` arguments have been deprecated [0] and
removed [1]. They have been renamed to '-Zunpretty' and moved to
nightly [2]. This means that currently, with the default stable compiler
this won't work. You will have to use nightly or wait until it is
stabilized (which is an ongoing effort [3]).

[0]: rust-lang/rust#21441
[1]: rust-lang/rust#83491
[2]: rust-lang/rust#27392
[3]: rust-lang/rust#43364

Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
kaffarell added a commit to kaffarell/rust.vim that referenced this pull request May 29, 2024
The `--pretty` and `--xpretty` arguments have been deprecated [0] and
removed [1]. They have been renamed to '-Zunpretty' and moved to
nightly [2]. This means that currently, with the default stable compiler
this won't work. You will have to use nightly or wait until it is
stabilized (which is an ongoing effort [3]).

[0]: rust-lang/rust#21441
[1]: rust-lang/rust#83491
[2]: rust-lang/rust#27392
[3]: rust-lang/rust#43364

Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants