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

Test ordering of glue_drop and glue_takew in self-re-assignment. #12330

Merged
merged 1 commit into from
Feb 18, 2014

Conversation

nrc
Copy link
Member

@nrc nrc commented Feb 16, 2014

closes #3290

@brson
Copy link
Contributor

brson commented Feb 17, 2014

We're closing a lot of 1.0 bugs this week! 💃

@alexcrichton
Copy link
Member

Looks like this just needs a pub fn main to appease the check-fast target (which will hopefully be gone soon!)

@nrc
Copy link
Member Author

nrc commented Feb 17, 2014

You mean that fn main should be pub fn main? Is that true in general for tests? How do you recognise from those logs that check-fast is the issue? And does this mean I should run make check and make check-fast before PRing? (So many questions...)

@alexcrichton
Copy link
Member

You mean that fn main should be pub fn main

yes

Is that true in general for tests

Just for the run-pass suite. The reason is that we have a check-fast suite on windows which basically concatenates all the tests together, and for resolve to work each main function must be pub to be usable. See #12304 for removing check-fast. (this suite is only run on bsd for a slow aws bot and windows for slow spawn times).

How do you recognise from those logs that check-fast is the issue

The bsd bot is complaining about error: function main is private with some weird t_XXX::main() expression, which is what the test concatenator is generating.

And does this mean I should run make check and make check-fast before PRing

Perhaps, I always forget pub fn main, but for super exhaustiveness check-fast will catch this bug.

@nrc
Copy link
Member Author

nrc commented Feb 18, 2014

Thanks for the info!

New version with pub in.

bors added a commit that referenced this pull request Feb 18, 2014
@bors bors closed this Feb 18, 2014
@bors bors merged commit 8334915 into rust-lang:master Feb 18, 2014
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.

glue_drop and glue_take in bad order
5 participants