Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove some cells from Config #4578
Conversation
added some commits
Oct 4, 2017
rust-highfive
assigned
matklad
Oct 4, 2017
This comment has been minimized.
This comment has been minimized.
rust-highfive
commented
Oct 4, 2017
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @matklad (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
This comment has been minimized.
This comment has been minimized.
|
The doc comments on |
This comment has been minimized.
This comment has been minimized.
|
LGTM, but let's ask @alexcrichton as well! |
alexcrichton
reviewed
Oct 4, 2017
|
Looks great, thanks! |
| frozen: Cell<bool>, | ||
| locked: Cell<bool>, | ||
| extra_verbose: bool, | ||
| /// TODO to do with Cargo.lock |
This comment has been minimized.
This comment has been minimized.
alexcrichton
Oct 4, 2017
Member
This has to do with the --frozen flag being passed on the command line, namely we're not allowed to touch the network
| extra_verbose: bool, | ||
| /// TODO to do with Cargo.lock | ||
| frozen: bool, | ||
| /// TODO to do with Cargo.lock |
This comment has been minimized.
This comment has been minimized.
alexcrichton
Oct 4, 2017
Member
This has to do with the --locked flag, namely we're not allowed to change lock files
This comment has been minimized.
This comment has been minimized.
|
Thanks I'll update |
This comment has been minimized.
This comment has been minimized.
|
@bors: r+ |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Oct 7, 2017
This comment has been minimized.
This comment has been minimized.
|
|
derekdreery commentedOct 4, 2017
In most cases it makes sense to not use interior mutability in Config, so that mutability is more transparent. This PR removes Cells in these cases. It leaves those cases where parameters are only initialized on first access (LazyCell).