Uh oh!
There was an error while loading. Please reload this page.
make commented examples use valid syntax, and be more consistent - #73538
Conversation
rust-highfive
commented
Jun 20, 2020
(rust_highfive has picked a reviewer for you, use r? to override) |
mati865
commented
Jun 20, 2020
This was purposely changed by #72382 |
tshepang
commented
Jun 20, 2020
@mati865 nice catch. I added a commit to explain more what's going on (after reading the code). That is, I'd rather we have valid syntax there, than have users experience a failing build (as I did). |
nikomatsakis
left a comment
There was a problem hiding this comment.
I have observed some confusion with the current setup, where people uncomment the line and then get errors.
nikomatsakis
commented
Jun 22, 2020
I agree that having the default values in the comments seems like a nice approach. |
Uh oh!
There was an error while loading. Please reload this page.
nikomatsakis
commented
Jun 22, 2020
I'm not sure who to loop in to get a broader range of opinions. Maybe @Mark-Simulacrum, @mark-i-m and @spastorino ? :) |
mark-i-m
left a comment
There was a problem hiding this comment.
So I feel that the values should all be sensible defaults that one can just uncomment to use, which I think is the intent of this PR.
Moreover, I feel like this PR would be complimented well by having a config.dev.toml that has reasonable default in it that people can just cp config.dev.toml config.toml and not have to look in the file at all.
| # | ||
| # Defaults to the Python interpreter used to execute x.py. | ||
| #python = "python" | ||
| #python = "python" # defaults to the Python interpreter used to execute x.py |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Yeah, that's true, it did seem to blend in to me.
nikomatsakis
commented
Jun 22, 2020
I do like the idea of a config.toml.dev, but I guess it's a distinct PR perhaps. |
See rust-lang#73538 (comment) for the motivation
| # Defaults to rust.debug value | ||
| #debug-assertions-std = false |
There was a problem hiding this comment.
This one defaults to debug-assertions and only indirectly to debug.
spastorino
commented
Jun 23, 2020
I like the approach of documenting to which value each thing defaults to but at the same time it seemed that that's what the previous code was doing already. I'm not sure what's the reason for the main change here like "examples should be of type bool". |
mark-i-m
commented
Jun 23, 2020
@spastorino I think the intent is that you should be able to just uncomment a line and it should work, which is not true today IIUC. |
nikomatsakis
commented
Jun 23, 2020
I'm happy with this current version. |
nikomatsakis
commented
Jun 23, 2020
(Though we should fix the problem @tmiasko noted) |
tshepang
commented
Jun 24, 2020
@spastorino the PR comment got obsolete with the iterations. I updated it now. |
tshepang
commented
Jun 24, 2020
should I squash the commits |
nikomatsakis
commented
Jun 24, 2020
@bors r+ rollup Meh, I don't think squashing is necessary. |
bors
commented
Jun 24, 2020
📌 Commit b23baa7 has been approved by |
make commented examples use valid syntax, and be more consistent
…arth Rollup of 14 pull requests Successful merges: - rust-lang#72617 (Add a fast path for `std::thread::panicking`.) - rust-lang#72738 (Self contained linking option) - rust-lang#72770 (Implement mixed script confusable lint.) - rust-lang#73418 (Add unstable `core::mem::variant_count` intrinsic) - rust-lang#73460 (Emit line info for generator variants) - rust-lang#73534 (Provide suggestions for some moved value errors) - rust-lang#73538 (make commented examples use valid syntax, and be more consistent ) - rust-lang#73581 (Create 0766 error code) - rust-lang#73619 (Document the mod keyword) - rust-lang#73621 (Document the mut keyword) - rust-lang#73648 (Document the return keyword) - rust-lang#73673 (Fix ptr doc warnings.) - rust-lang#73674 (Tweak binop errors) - rust-lang#73687 (Clean up E0701 explanation) Failed merges: - rust-lang#73708 (Explain move errors that occur due to method calls involving `self` (take two)) r? @ghost
No description provided.