-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
reorder config.toml.example options and add one missing option #65408
Conversation
This is based on the discussion in this issue: #65352 |
afef9f6
to
fb5789f
Compare
So I just removed the documentation part, internally the flag is still there. |
Perfect, thanks! @bors r+ rollup=always cc @rust-lang/compiler on this change but I believe it should be uncontroversial so approving -- this is just hiding the optimize flag from the documentation since it is an "advanced" feature and we don't expect 99.9% of contributors to change it, or indeed really anyone. |
📌 Commit fb5789f0b23ffde6608f69817130230958d45a5c has been approved by |
I personally consider everything in config.toml advanced features and I'd like to keep it. |
I am tempted to r- the PR because I personally am in @Zoxc's camp that everything config.toml is "advanced features", and I don't think people should have to go grepping through the rust-build infrastructure to discover options like this ... ... the main reason why I have balked at r-'ing the PR is that I am not aware of anyone who has gotten utility from setting The one thing that I think this big block of text does buy us is this: Clarity as to what are the effects of If you apply this PR, some people might infer (incorrectly) that setting |
@bors r- Lets at least touch on this in the Thursday compiler team meeting. (that is: nominating for discussion at compiler team meeting.) |
Sounds good :) To be clear I don't personally have much opinion here; I think I agree as to ambiguity of But I'm happy to discuss at the meeting. |
I use debug builds sometimes to get accurate stack traces. It's a bit slow, but using a parallel compiler helps a lot.
|
When you say "a bit slow" -- prior issues/PRs have noted >10x slowdown which I would imagine makes bootstrapping impossible; does a parallel compiler actually help a lot here? |
Usually you just need to build libcore or libstd with the debug compiler to debug it. The parallel compiler helps much more than normally since LLVM is still as fast and the overhead of atomics is less since everything else is slower. |
My two cents: I do not think we should have options that are not commented. I consider However, I think we can just add a stronger note on
|
I can try to figure out the missing options. for the optimize flag, I can simply copy niko's sentences above if everyone is okay with it. |
oh, I do spot one missing option, it's the |
Could you split the commit into 3:
This'll make the commit history a bit better. Other than that I'm personally probably fine with this, although we might instead prefer to edit the source code to match the ordering in config.toml.example, since that seems to be the "source of truth" more so than the code IMO. |
I thought for a few seconds which would be the "source of truth" as you mentioned above, :) I lean towards the code, but it seems Mark is on the I'll wait for one more day before I update the commit. So my plan would be:
|
I mean the code is obviously the real source of truth, but I think people are more likely to peruse this file (certainly I did). It's length also strongly suggests it is exhaustive. I don't really care if we make the code match the toml or vice versa -- but having them be the same makes sense. |
I think this is sort of not true -- in the sense that the code today is just haphazardly ordered whereas config.toml.example has had at least some thought put into it. |
Removing the S-waiting-on-team tag since I think we've decided. |
5c73845
to
5defe06
Compare
I've split the commits into three categories:
@Mark-Simulacrum @nikomatsakis Could you please help review again? |
@bors r+ rollup=always Thanks for bearing with the process so far! I'm going to approve this as I believe we're in a "this changes almost nothing" state -- and we had consensus I believe on the warning being added. |
📌 Commit 5defe06 has been approved by |
…k-Simulacrum reorder config.toml.example options and add one missing option r? @Mark-Simulacrum
Rollup of 9 pull requests Successful merges: - #62959 (Add by-value iterator for arrays ) - #65390 (Add long error explanation for E0576) - #65408 (reorder config.toml.example options and add one missing option) - #65414 (ignore uninhabited non-exhaustive variant fields) - #65666 (Deprecated proc_macro doesn't trigger warning on build library) - #65742 (Pre-expansion gate most of the things) - #65747 (Adjust the tracking issue for `untagged_unions`.) - #65763 (Changed APIT with explicit generic args span to specific arg spans) - #65775 (Fix more `ReEmpty` ICEs) Failed merges: - #65519 (trait-based structural match implementation) r? @ghost
r? @Mark-Simulacrum