Skip to content

Improve --test interaction with entry points #27992

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 4 commits into from
Aug 26, 2015
Merged

Conversation

wthrowe
Copy link
Contributor

@wthrowe wthrowe commented Aug 25, 2015

Identifying entry points will be useful in --test mode, which is
handled in libsyntax.
This handles the case where the #[main] function is buried deeper in
the ast than we search for #[test] functions.  I'm not sure why one
would want to do that, but since it works in standard compilation it
should also work for tests.
@rust-highfive
Copy link
Contributor

r? @huonw

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

@bors: r+ 8320a3a

Thanks!

bors added a commit that referenced this pull request Aug 26, 2015
* Suppresses warnings that main is unused when testing (#12327)
* Makes `--test` work with explicit `#[start]` (#11766)
* Fixes some cases where the normal main would not be disabled by `--test`, resulting in compilation failures.
@bors
Copy link
Collaborator

bors commented Aug 26, 2015

⌛ Testing commit 8320a3a with merge a48c29d...

@bors bors merged commit 8320a3a into rust-lang:master Aug 26, 2015
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.

5 participants