-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Reduce the usage of features in compiletest and libtest #43180
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
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
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'm not sure about the libc dependency. Is there any reason rustc doesn't use the crates.io version everywhere?
src/libtest/lib.rs
Outdated
#![feature(set_stdio)] | ||
#![feature(staged_api)] | ||
#![feature(panic_unwind)] |
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 one is weird. Is this like a compile-time check whether unwinding is active?
src/libtest/lib.rs
Outdated
@@ -34,10 +34,7 @@ | |||
#![deny(warnings)] | |||
|
|||
#![feature(asm)] | |||
#![feature(libc)] | |||
#![feature(rustc_private)] | |||
#![feature(set_stdio)] |
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.
We can't get rid of this one yet, since there'd be no way to capture the stderr and stdout of tests.
src/libtest/lib.rs
Outdated
@@ -34,10 +34,7 @@ | |||
#![deny(warnings)] | |||
|
|||
#![feature(asm)] |
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 one is needed for black_box
.
@@ -10,9 +10,7 @@ | |||
|
|||
#![crate_name = "compiletest"] | |||
|
|||
#![feature(box_syntax)] | |||
#![feature(test)] |
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'd like to get rid of the dependence of compiletest on the test
crate entirely. I don't really see any reason for this dependency to exist except some minor code sharing. The major blocker is the run_test
function that is called in the test
crate.
travis failure looks spurious
|
I don't think the travis failure is spurious, can you rerun |
oh... This is |
Did you try running |
You're right. This time it's definitely not me though:
|
@bors: r+ |
📌 Commit cb92ab9 has been approved by |
Reduce the usage of features in compiletest and libtest
☀️ Test successful - status-appveyor, status-travis |
No description provided.