-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Make sure that all upstream generics get re-exported from Rust dylibs. #68277
Make sure that all upstream generics get re-exported from Rust dylibs. #68277
Conversation
This also makes a few edge cases slower because we can't use the query cache anymore. Let's do a perf run to make sure that the common cases are not affected. @bors try @rust-timer queue |
Awaiting bors try build completion |
⌛ Trying commit d487e9ea97a00ab704035f11cf0aab1d9f79ef5c with merge 4031484a2f96426fe9d445592c85e21d90cb229c... |
|
Looks great to me, nice! My only worry would be the number of r=me if perf comes back clean, and basically r=me if this is updated and perf comes back clean too :) |
@rust-timer build 4031484a2f96426fe9d445592c85e21d90cb229c |
Queued 4031484a2f96426fe9d445592c85e21d90cb229c with parent 9fe05e9, future comparison URL. |
Finished benchmarking try commit 4031484a2f96426fe9d445592c85e21d90cb229c, comparison URL. |
@bors r=alexcrichton rollup=never |
📌 Commit 87ce8df4364d4f0e5c208ba67ab3ca835963a5ee has been approved by |
⌛ Testing commit 87ce8df4364d4f0e5c208ba67ab3ca835963a5ee with merge 11f1e2b4a192294745df71d3e11d0704146e6c6a... |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
💔 Test failed - checks-azure |
The regression test is originally from rust-lang#64324 but was removed again after the fix in there turned out to break other things.
87ce8df
to
0a9bcb0
Compare
Rebased and moved the test cases from |
@bors r=alexcrichton |
📌 Commit 0a9bcb0 has been approved by |
…alexcrichton Make sure that all upstream generics get re-exported from Rust dylibs. This PR contains a fix for #67276. Rust dylibs would not re-export all generic instances when compiling with `-Zshare-generics=on` (=default for debug builds) which could lead to situations where the compiler expected certain generic instances to be available but then the linker would not find them. ### TODO - [x] Write a regression test based on the description [here](#67276 (comment)). - [x] Find out if this also fixes other issues related to #64319. r? @alexcrichton ~~(once the TODOs are done)~~ cc @pnkfelix @alexkornitzer
☀️ Test successful - checks-azure |
This PR contains a fix for #67276. Rust dylibs would not re-export all generic instances when compiling with
-Zshare-generics=on
(=default for debug builds) which could lead to situations where the compiler expected certain generic instances to be available but then the linker would not find them.TODO
r? @alexcrichton
(once the TODOs are done)cc @pnkfelix @alexkornitzer