-
Notifications
You must be signed in to change notification settings - Fork 13.3k
*: remove crate_{name,type} attributes #43994
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
Note sure what to make of these test failures:
|
The problem is this function, which redirects tests of crates with a Lines 611 to 617 in 6f4ab94
|
8f64c56
to
851d094
Compare
src/libsyntax/test.rs
Outdated
@@ -85,7 +85,7 @@ pub fn modify_for_testing(sess: &ParseSess, | |||
"reexport_test_harness_main"); | |||
|
|||
if should_test { | |||
generate_test_harness(sess, resolver, reexport_test_harness_main, krate, span_diagnostic) | |||
generate_test_harness(sess, crate_name, resolver, reexport_test_harness_main, krate, span_diagnostic) |
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 line is too long.
[00:03:11] tidy error: /checkout/src/libsyntax/test.rs:88: line longer than 100 chars
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.
Thank you, fixed.
851d094
to
07fc66c
Compare
Thanks @arielb1! This is green. |
These sort of changes are more of @alexcrichton's domain. |
@bors: r+ |
📌 Commit 07fc66c has been approved by |
⌛ Testing commit 07fc66c2583ded22f061ef7eb643e62edef7a707 with merge 86ca4b4773693d5f666a96fffefe1f0c95d226ff... |
💔 Test failed - status-travis |
|
I'm guessing that now that libtest doesn't have the name attribute, something's different in the resulting rlib (or dylib, on my mac). @alexcrichton any guidance? FWIW, it does seem like faa6769 is what broke this (and yet it is necessary to solve the earlier build problem). |
Looks like the bug here is that |
@alexcrichton I don't follow: this failure occurs even without the mass removal of attributes (i.e. in the second commit). |
I'd recommend just backing out the modifications to libsyntax/test.rs. When doing that I'd add back |
It'd be nice to understand the cause, though. I'll take another look at
this later today.
…On Aug 24, 2017 18:36, "Alex Crichton" ***@***.***> wrote:
I'd recommend just backing out the modifications to libsyntax/test.rs.
When doing that I'd add back #![crate_name] to src/libtest/lib.rs and
that I believe should pass tests.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#43994 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABdsPNG6VmEkOVaw-r2NIkFeIdC9WmHuks5sbfr7gaJpZM4O8eXF>
.
|
The test harness acts differently based on its calculated value of |
The value of this field is meant to indicate whether or not the crate is rustc's libtest itself - not whether or not it is a test crate generally.
07fc66c
to
dccf50d
Compare
dccf50d
to
b3f50ca
Compare
@alexcrichton OK, done. I don't quite understand this machinery that does specific-to-libtest stuff, but I've go ahead and documented some of this sorcery. |
@bors: r+ |
📌 Commit b3f50ca has been approved by |
☀️ Test successful - status-appveyor, status-travis |
Fixes #41701.
r? @arielb1