-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
rustc: gensym the module names for --test to avoid introducing names. #15964
Conversation
Ah, that's what the problem was! (Also this doesn't compile: https://travis-ci.org/rust-lang/rust/jobs/30801909) |
Err, yes, I always compile the patch I actually commit. always (Will fix tonight.) |
…ccessible names. This requires avoiding `quote_...!` for constructing the parts of the __test module, since that stringifies and reinterns the idents, losing the special gensym'd nature of them. (rust-lang#15962.)
@alexcrichton this is failing due to two test using the
Thoughts? (I take it these tests are explicitly designed to be run under the green scheduler?) |
Hm, that's interesting! The That being said, the way all these binaries run the test harness under libgreen is a gross hack (as you're discovering). Other possibilities might include:
I'm not a fan of an environment variable or a command line flag because stdtest cannot succeed unless it's run with librustuv as the backend. This is kinda just a smattering of ideas, none of them make me feel comfortable really. I suppose the "sanest" one is |
I implemented a variation on r? |
@@ -0,0 +1,9 @@ | |||
#[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.
linting may require that this need a license
implementation details. (Mainly to avoid accessing the secret internal test module symbol name.)
default entrypoint of the --test binary. This allows one to, e.g., run tests under libgreen by starting it manually, passing in the test entrypoint.
This requires avoiding `quote_...!` for constructing the parts of the __test module, since that stringifies and reinterns the idents, losing the special gensym'd nature of them. (#15962.)
minor: Bump rustc deps and chalk This finally upgrades `ra-ap-rustc_parse_format` (even though it's probably a no-op?).
This requires avoiding
quote_...!
for constructing the parts of the__test module, since that stringifies and reinterns the idents, losing
the special gensym'd nature of them. (#15962.)