Skip to content

add some comments to clarify command-line argument munging in #482 #485

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

Merged
merged 1 commit into from
Oct 18, 2018

Conversation

apoelstra
Copy link
Contributor

In #482 there was some question about what my argument-handling logic was doing. This adds comments to explain it.

@@ -109,6 +110,8 @@ fn main() {
}
}
(true, "lib") => {
// For libraries we call `cargo rustc -- --test <rustc args>`
// Notice now that `--test` is a rustc arg rather than a cargo arg.
Copy link
Member

Choose a reason for hiding this comment

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

"libraries" here means "#[test] functions", right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes.

Copy link
Member

Choose a reason for hiding this comment

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

Okay. Could you add that?

Took me a while to figure that out (originally, as in some months ago, I thought these are also just test binaries for cargo, I didn't know where the magic lived).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the comment.

@apoelstra apoelstra force-pushed the 2018-10-comment-482 branch from f2dd3e9 to 4fa5bfa Compare October 17, 2018 20:25
@RalfJung
Copy link
Member

Thanks!

@RalfJung RalfJung merged commit 8d754e6 into rust-lang:master Oct 18, 2018
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.

2 participants