-
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 libtest out of tree #59775
Comments
A couple unresolved questions:
|
Just curious, why is this a requirement if using |
That's optional too. compiletest-rs is a fork of rustc compiletest made to work out of tree, it's not that much work. We regularly sync compiletest-rs from rustc, IIRC. |
The main problem was that, for some reason, the dependencies of the None of this should be necessary, and IIUC @xales figured out that this was happening because Otherwise we'd need to add more magic to the build system to handle these dependencies specially. |
Also, we probably want to move to use compiletest-rs from crates.io in tree before moving libtest out of tree. Is there any reason not to do that? |
We should definitely try. Two challenges:
|
We might as well start tracking the feature flags that are keeping libtest from being stable:
|
Only the latter three are really needed, and they are only needed to support features that could be optional, so we can put them behind a cargo |
That's fair... but really asm & test should be put behind a feature for like IMO I/O capture is a pretty essential feature, so I'm hesistant to just punt on it, but I guess it's still a step forward from the status quo |
@djrenren I think we might be talking past each other. When writing a benchmark, users would need to enable some feature to access |
See: https://internals.rust-lang.org/t/a-path-forward-towards-re-usable-libtest-functionality-custom-test-frameworks-and-a-stable-bench-macro
An attempt for moving libtest out of tree was made in #57842 , however it broke clippy in weird ways that involve interactions with the rustc build system.
It has been reverted in #59766 so that the beta is fixed in time.
We should still work towards making this happen.
A potential plan is to:
thoughts? @gnzlbg @xales
The text was updated successfully, but these errors were encountered: