-
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
Clarify the debug-related values should take boolean #77766
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Hmm, I don't know if I like this change. You've changed the default to |
r? @jyn514 |
This is being changed back and forth. See for example previous discussion in #73538. |
@jyn514 Okay, you think a placeholder should be a "default value" but I thought it should've been a "taken value" :) |
I would like to avoid changing this back and forth. If we do change this, I would like a policy somewhere (maybe just at the top of config.toml?) so people know not to change this back. That said, I'm not strongly opposed to this change as long as it's documented that it's not the default. Currently config.toml says these are defaults, so this would break that: https://github.com/rust-lang/rust/blob/03eb74a3c833778a38a476c36ece8bbfd2cdfbc1/config.toml.example#L6-L7 |
@jyn514 Fair enough! So what about this? #debug-assertions = rust.debug value (boolean) It doesn't lose the current meaning and tells the users that the value should take boolean. |
Sure, that sounds good to me. I would remove "value" in the comment though, or maybe change it to "value of rust.debug". |
03eb74a
to
a3a5793
Compare
They should take boolean values and the current placeholders are confusing, at least for me.
a3a5793
to
2224e26
Compare
@jyn514 Updated. |
@bors r+ rollup Thanks for bringing this up :) I can definitely see how it was confusing before. |
📌 Commit 2224e26 has been approved by |
Clarify the debug-related values should take boolean rust-lang#76588 tweaked their placeholders but these values should take boolean and the current placeholders are confusing, at least for me.
Rollup of 10 pull requests Successful merges: - rust-lang#77195 (Link to documentation-specific guidelines.) - rust-lang#77629 (Cleanup of `eat_while()` in lexer) - rust-lang#77709 (Link Vec leak doc to Box) - rust-lang#77738 (fix __rust_alloc_error_handler comment) - rust-lang#77748 (Dead code cleanup in windows-gnu std) - rust-lang#77754 (Add TraitDef::find_map_relevant_impl) - rust-lang#77766 (Clarify the debug-related values should take boolean) - rust-lang#77777 (doc: disambiguate stat in MetadataExt::as_raw_stat) - rust-lang#77782 (Fix typo in error code description) - rust-lang#77787 (Update `changelog-seen` in config.toml.example) Failed merges: r? `@ghost`
#76588 tweaked their placeholders but these values should take boolean and the current placeholders are confusing, at least for me.