-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Rename debugging_opts
to unstable_opts
#98975
Conversation
Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3 Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred in compiler/rustc_codegen_gcc cc @antoyo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left comments on the changes which aren't a blanket "debugging_opts" => "unstable_opts" change
@@ -366,7 +366,7 @@ fn opts() -> Vec<RustcOptGroup> { | |||
) | |||
}), | |||
unstable("Z", |o| { | |||
o.optmulti("Z", "", "internal and debugging options (only on nightly build)", "FLAG") | |||
o.optmulti("Z", "", "unstable / perma-unstable options (only on nightly build)", "FLAG") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should probably have a rustdoc reviewer - @camelid does this new description look good?
@@ -1652,12 +1652,12 @@ pub fn parse_crate_edition(matches: &getopts::Matches) -> Edition { | |||
edition | |||
} | |||
|
|||
fn check_debug_option_stability( | |||
debugging_opts: &DebuggingOptions, | |||
fn check_error_format_stability( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change wasn't automatic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing these out!
@@ -1186,12 +1186,13 @@ options! { | |||
} | |||
|
|||
options! { | |||
DebuggingOptions, DB_OPTIONS, dbopts, "Z", "debugging", | |||
UnstableOptions, Z_OPTIONS, dbopts, "Z", "unstable", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change wasn't automatic - I think "unstable" is a good new description, and Z_OPTIONS
isn't super descriptive, but neither was DB_OPTIONS
.
|
||
// This list is in alphabetical order. | ||
// | ||
// If you add a new option, please update: | ||
// - compiler/rustc_interface/src/tests.rs | ||
// - src/doc/unstable-book/src/compiler-flags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not related to this PR, but seems like a good change. happy to split it into a separate PR.
/// This name is kind of confusing: Most unstable options enable something themselves, while | ||
/// this just allows "normal" options to be feature-gated. | ||
unstable_options: bool = (false, parse_bool, [UNTRACKED], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note the new way to use this is unstable_opts.unstable_options
0567674
to
06b3235
Compare
This description doesn't seem to be used anywhere? IMO we should probably just remove all these if they're not used.
|
Can we go ahead and update that just for consistency? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this @jyn514! I reviewed all of the changes and overall this looks great to me. I'm going to hold off on the r+ for a few days so others can weigh in.
@@ -1652,12 +1652,12 @@ pub fn parse_crate_edition(matches: &getopts::Matches) -> Edition { | |||
edition | |||
} | |||
|
|||
fn check_debug_option_stability( | |||
debugging_opts: &DebuggingOptions, | |||
fn check_error_format_stability( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing these out!
☔ The latest upstream changes (presumably #99014) made this pull request unmergeable. Please resolve the merge conflicts. |
@wesleywiser it's been a few days, including weekdays and a weekend - do you think it's ok to merge now? This bitrots quite quickly. |
Yes, please r=me after a rebase. Thanks for doing this! |
@bors r=wesleywiser rollup=never |
📌 Commit dde82482724c206cbdb2dd7ccd604182912e2921 has been approved by It is now in the queue for this repository. |
☔ The latest upstream changes (presumably #99165) made this pull request unmergeable. Please resolve the merge conflicts. |
This is no longer used only for debugging options (e.g. `-Zoutput-width`, `-Zallow-features`). Rename it to be more clear.
@bors r=wesleywiser rollup=never |
☀️ Test successful - checks-actions |
📣 Toolstate changed by #98975! Tested on commit 0ed9c64. 💔 miri on windows: test-fail → build-fail (cc @RalfJung @oli-obk). |
Tested on commit rust-lang/rust@0ed9c64. Direct link to PR: <rust-lang/rust#98975> 💔 miri on windows: test-fail → build-fail (cc @RalfJung @oli-obk). 💔 miri on linux: test-fail → build-fail (cc @RalfJung @oli-obk). 💔 rls on windows: test-pass → build-fail (cc @Xanewok). 💔 rls on linux: test-pass → build-fail (cc @Xanewok).
StabilityLevel::Unstable
reason multiple times into .rmeta\.rlib files
#98770
Finished benchmarking commit (0ed9c64): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
This only renames some variables, I doubt the improvements are real (seems more likely those benchmarks are high variance) |
Rename `debugging_opts` to `unstable_opts` This is no longer used only for debugging options (e.g. `-Zoutput-width`, `-Zallow-features`). Rename it to be more clear. cc https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Codegen.20options.20.2F.20debugging.20options r? `@Amanieu` cc `@nikic` `@joshtriplett`
This is no longer used only for debugging options (e.g.
-Zoutput-width
,-Zallow-features
).Rename it to be more clear.
cc https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Codegen.20options.20.2F.20debugging.20options
r? @Amanieu cc @nikic @joshtriplett