-
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
Move some tests in src/test/compile-fail -> src/test/ui #62177
Conversation
Yay! Initial tests seem to pass at least. |
Some of these are going to fail on wasm, IIRC. |
r=me after the wasm check |
@petrochenkov Will do. Should I ignore tests for the wasm target if they fail? |
Splitting into |
(Since they "fail" by producing platform-dependent output, rather than by really failing.) |
477fb6c
to
6d4c642
Compare
Tested wasm with @bors r=petrochenkov |
📌 Commit 6d4c642 has been approved by |
|
||
error[E0463]: can't find crate for `std` | ||
| | ||
= note: the `wasm32-unknown-unknown` target may not be installed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could also use normalization to get rid of these two lines. Then you don't need to duplicate tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have e.g. used the following to normalize away entire lines in other tests:
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, this is great news.
For some reason I thought the normalization works per-line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much simpler to fix platform-dependent tests this way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the matching of the normalization pattern is per-line -- but if you include the final \n
, you can remove the entire line. And then that's handled correctly when comparing later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll have a look at this tomorrow; in the meantime feel free to r- or we can do this in a follow up PR if that's alright with y'all.
…s, r=petrochenkov Move some tests in src/test/compile-fail -> src/test/ui This is a subset of rust-lang#62113. Hopefully everything here sticks, but if it doesn't I'll remove tests until it does. r? @petrochenkov
@bors r- Failed in #62294 (comment). Will try the normalization strategy instead. |
☔ The latest upstream changes (presumably #62355) made this pull request unmergeable. Please resolve the merge conflicts. |
@Centril Ping from triage regarding the merge conflicts! :) |
@Centril @petrochenkov Ping from triage, this is so close! :) |
Third ping from triage, @Centril any updates on this? Note: Thanks for the PR. This will be closed and marked as Thanks |
Closing for now until I have time to get back to it :) |
This is a subset of #62113.
Hopefully everything here sticks, but if it doesn't I'll remove tests until it does.
r? @petrochenkov