-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
How do compiler tests interact with editions? #49605
Comments
Maybe we should run all test combinations once every beta release similar to the crater runs |
Related bug (I think) is #52979, which proposed extending our test suite to run every test (unless they opt out) under both the 2015 and 2018 editions.
I would recommend we still investigate something like this. We wouldn't need to test every edition, if for some reason we were worried about testing time growing too fast every three years; it would probably suffice to test just the latest two (i.e. the one under development and its predecessor). |
Please don't repeat the story with NLL testing (everything is run twice), it's awful and I'm looking forward to removing the NLL run at last. Most of tests are edition-agnostic, and those few that may want to run on both editions can be annotated explicitly. |
If all tests are run for both editions, they at lest need to be organized into separate test suites (similarly to
|
(I don't know how to check for unexpected fallout besides running everything twice. Of course its possible that we made a mistake in policy when we turned the compare-mode=nll ui suite variant on by default for everyone. Or maybe the mistake was just that we didn't provide an easy way to opt out of it as a local developer? We did check ahead of time with the infrastructure team about whether running the ui tests twice would impose a huge burden on the CI system...) |
compiletest triage: maybe there can be some kind of |
During the Rust All-Hands last week, a question was brought up about how rustdoc would test its
--edition
flag to ensure that things that should compile in specific editions are tested to ensure this. Something like this should also be considered for the regular compiler tests as well.A small plan i'm pondering, after a discussion with @nikomatsakis last week:
edition
flag to compiletest so that certain tests can request a specific editionThe text was updated successfully, but these errors were encountered: