-
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
Need compare-mode=2018
(or similar) to run test suite under multiple editions
#52979
Comments
There's a policy question here in terms of what to do with tests that are clearly making use of syntax that will need to be For example, my initial draft of trying to make a rust/src/test/ui/use-nested-groups-unused-imports.rs Lines 11 to 35 in 40cb447
The problem is that when you compile this file adding So the policy question that leads me to is:
|
Another potential option: the compare-mode=2018 could run |
Reading over #50084, it sounds like there is supposed to already be a So maybe that is an answer: This avoids the need to run rustfix ourselves, while also forcing the test data to keep a concrete record of the cases where we expect |
Private experimentation along with discussions with @alexcrichton made me realize that you cannot always get useful In the general case, you need to start with something that compiles, and then you should be able to see the diagnostics that This implies that Having said that, we can still apply it to just the tests that are marked |
Now that RC2 is out, I'm wondering whether there is enough time to actually implement this and get value from it... It seems unlikely, especially since the biggest issue (the migration mode imposed by NLL) is now already covered by the change from #55118 |
To resolve #48879 we added
--compare-mode=nll
. It allows us to keep track of whether the diagnostics deviate, and in what fashion, for the wholeui/
test suite.We should have something similar for the 2018 edition. That would force us to be honest about how much things are going to change for people who try to upgrade their edition.
(Also, I believe such a mode would have caught #52967)
The new
compare-mode=2018
could either be added as a new thing on its own, or we could replace the existingcompare-mode=nll
withcompare-mode=2018
.ui/
test suite. I would like feedback from @rust-lang/infra about which route is best here.The text was updated successfully, but these errors were encountered: