-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Allow ui_test style headers in compiletest #114072
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
Allow ui_test style headers in compiletest #114072
Conversation
Changes to the code generated for builtin derived traits. cc @nnethercote These commits modify the If this was unintentional then you should revert the changes before this PR is merged. Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3 |
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #114076) made this pull request unmergeable. Please resolve the merge conflicts. |
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 reviewed up to the point where github wanted me to expand the files.
I guess the only thing is that I'd have preferred the compiletest changes to be in a few individual commits, but I reviewed the entire diff on compiletest itself and it lgtm.
tests/ui/asm/aarch64/type-check-3.rs
Outdated
@@ -1,5 +1,5 @@ | |||
// only-aarch64 |
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.
These haven't gotten converted
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 hadn't yet implemented the only
and ignore
things, looking into that now.
@@ -1,7 +1,7 @@ | |||
// only-aarch64 | |||
// build-fail |
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.
this isn't supported yet in ui-test
@@ -1,5 +1,5 @@ | |||
// build-pass |
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.
maybe ui-test should have a way to register custom commands that can be converted to other commands. This command is just changing compiler flags, and only really something the rustc test suite cares about
tests/ui/asm/x86_64/issue-96797.rs
Outdated
@@ -1,5 +1,5 @@ | |||
// build-pass | |||
// compile-flags: -O | |||
//@compile-flags: -O | |||
// min-llvm-version: 14.0.5 |
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.
fun. Not sure how to do this yet
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.
Well you're in luck, most of these got removed :D
(though yes it's still a general issue for migration)
f57331a
to
a57841e
Compare
a57841e
to
c85c7d4
Compare
src/tools/compiletest/src/runtest.rs
Outdated
@@ -234,7 +234,7 @@ enum Emit { | |||
|
|||
impl<'test> TestCx<'test> { | |||
/// Code executed for each revision in turn (or, if there are no | |||
/// revisions, exactly once, with revision == None). | |||
///@revisions, exactly once, with revision == None). |
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.
accidental replacement
☔ The latest upstream changes (presumably #114130) made this pull request unmergeable. Please resolve the merge conflicts. |
c85c7d4
to
ae5e93d
Compare
☔ The latest upstream changes (presumably #112843) made this pull request unmergeable. Please resolve the merge conflicts. |
ae5e93d
to
0e33c33
Compare
ping @asquared31415 for a rebase, apart from that who else should have a look. This PR maybe also needs a sign-off from: r? boostrap thanks |
Failed to set assignee to
|
Failed to set assignee to
|
Failed to set assignee to
|
@rustbot author Sorry this was not ready for review, there's still lots to do. |
r? @oli-obk
This is a step towards the MCP to replace compiletest rust-lang/compiler-team#536
This PR allows compiletest to accept certain headers that ui_test can understand. Tests that don't use any compiletest-specific features can now be run under ui_test and compiletest.
The second commit changes all the tests to use the new directives.