-
Notifications
You must be signed in to change notification settings - Fork 59
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 to libtest #162
Move to libtest #162
Conversation
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.
r=me
(I will merge and publish once travis passes and once I'm sure that it's working in clippy) |
Nope, this is more complex, since libtest itself doesn't work on stable, and there's no way to pull in a dependency when a feature is turned off when that feature does other things too. Hmm. |
@gnzlbg I'm not sure what's going on here, can you take a look? I can't get rid of |
@Manishearth the libtest crate is not really ready for general use from crates.io yet. It works for the compiler, but further refactorings will be necessary to get there. |
@gnzlbg well in the meantime this has broken clippy :| |
Ehm, that shouldn't have happened. The shipped |
|
Ah, you're missing some reexports |
Clippy itself additionally needs |
@Manishearth yeah, I remember we decided to try to minimize what's being re-exported. I argued that it might break stuff, and here we are. I think using libtest and enabling the test feature is the best short term fix. The first refactor to do will be to make the crate work without the |
We can't, this crate is used by stable users too, who don't use the libtest bits, and cargo features aren't powerful enough to do this correctly. |
Ok, I'll speed up libtest refactors, and will send here a PR fixing things. |
This crate is already broken on stable, it seems. |
This crate worked fine for me on stable before this change. Reported as #164. |
@@ -20,7 +20,7 @@ extern crate rustc; | |||
|
|||
#[cfg(unix)] | |||
extern crate libc; | |||
extern crate test; | |||
extern crate libtest as 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.
Which test
did this link against before? Clearly something that worked on stable, whereas libtest
does not compile on stable because it depends on rustc_term
.
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.
Oh, I think it was https://github.com/messense/rustc-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.
Rustc ships with a libtest
No description provided.