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

Cannot test with stage0 #54061

Closed
ehuss opened this issue Sep 8, 2018 · 1 comment
Closed

Cannot test with stage0 #54061

ehuss opened this issue Sep 8, 2018 · 1 comment

Comments

@ehuss
Copy link
Contributor

ehuss commented Sep 8, 2018

There was a shortcut for fast testing of std with ./x.py test --stage 0 --no-doc src/libstd, but it doesn't seem to work as of #53410. I get the following error:

Testing std stage0 (x86_64-apple-darwin -> x86_64-apple-darwin)
   Compiling std v0.0.0 (file:///Users/eric/Proj/rust/rust/src/libstd)
error[E0308]: mismatched types
  |
  = note: expected type `&[&__test::test::TestDescAndFn]`
             found type `&'static [__test::test::TestDescAndFn]`

error: aborting due to previous error

I'm guessing the problem is that the synthesized main created by the beta compiler no longer uses the same signatures in the new libtest. I suspect this is just an unfortunate consequence of this part of the test harness being part of the parser, and that there is nothing that can be done except wait for the next beta. However, I wanted to file an issue to verify my assumptions.

@Mark-Simulacrum
Copy link
Member

Yes, that's correct, I don't think there's anything we can really do here unfortunately -- testing in stage0 has always been rather flaky. If you want fast turn arounds, I recommend trying ./x.py test --stage 1 src/libstd and then ./x.py test --keep-stage 0 --stage 1 src/libstd.

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

No branches or pull requests

2 participants