Skip to content
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

more toolstate comments #69693

Closed
wants to merge 1 commit into from
Closed

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Mar 4, 2020

Adjust some comments for the rewrite of parts of this in Rust.

However, I am still confused by what I raised at #69624 (comment).

r? @Mark-Simulacrum

@@ -325,11 +325,11 @@ fn prepare_toolstate_config(token: &str) {
Err(_) => false,
};
if !success {
panic!("git config key={} value={} successful (status: {:?})", key, value, status);
panic!("git config key={} value={} failed (status: {:?})", key, value, status);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just a typo, wasn't it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that, and switched one of them in my PR to "unsuccessful". My only thought is that maybe it was written like how some people use expect() and put the expected result/behavior in the string (like expect("does not fail")) instead of explaining the error (expect("error")). I find that quite confusing myself, but I see how reading "expect error" in English is also confusing, since it does the opposite. I kinda wish a different word than expect was chosen. (Sorry, off-topic ramble.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unsuccessful seems fine, too (it was used above so it is more consistent).

@ehuss
Copy link
Contributor

ehuss commented Mar 4, 2020

Rolled this up into #69705.

@RalfJung
Copy link
Member Author

RalfJung commented Mar 4, 2020

Great, thanks! I will close this one then.

@RalfJung RalfJung closed this Mar 4, 2020
@RalfJung RalfJung deleted the toolstate branch March 4, 2020 16:54
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Mar 5, 2020
…ta, r=Mark-Simulacrum

Toolstate: remove redundant beta-week check.

I made a bit of a mistake in rust-lang#69624.  The "beta regression" doesn't need to be checked twice.

I also rolled up rust-lang#69693 to avoid merge conflicts.
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Mar 5, 2020
…ta, r=Mark-Simulacrum

Toolstate: remove redundant beta-week check.

I made a bit of a mistake in rust-lang#69624.  The "beta regression" doesn't need to be checked twice.

I also rolled up rust-lang#69693 to avoid merge conflicts.
Centril added a commit to Centril/rust that referenced this pull request Mar 11, 2020
…ta, r=Mark-Simulacrum

Toolstate: remove redundant beta-week check.

I made a bit of a mistake in rust-lang#69624.  The "beta regression" doesn't need to be checked twice.

I also rolled up rust-lang#69693 to avoid merge conflicts.
Centril added a commit to Centril/rust that referenced this pull request Mar 11, 2020
…ta, r=Mark-Simulacrum

Toolstate: remove redundant beta-week check.

I made a bit of a mistake in rust-lang#69624.  The "beta regression" doesn't need to be checked twice.

I also rolled up rust-lang#69693 to avoid merge conflicts.
Centril added a commit to Centril/rust that referenced this pull request Mar 12, 2020
…ta, r=Mark-Simulacrum

Toolstate: remove redundant beta-week check.

I made a bit of a mistake in rust-lang#69624.  The "beta regression" doesn't need to be checked twice.

I also rolled up rust-lang#69693 to avoid merge conflicts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants