-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
statics in closures returned using impl Trait: undefined symbols #40839
Comments
Yes, this could well be the collector not finding the instance. Nominated for priority assignment. |
@TimNN marking as P-medium under the assumption that this is relatively easy to work-around. Let us know if I misunderstand |
@Mark-Simulacrum Yes, they're both |
This also appears to affect using
|
I have not yet managed to reproduce this. I must be doing something wrong. |
@Nemo157 Thanks! |
It seems at some point between |
The root cause here some that compiler does not properly handle closures that are returned from a function via A straightforward solution to this problem would be to fix the privacy pass, as @eddyb pointed out. |
|
Using Could this issue be prioritized, please? Thank you |
I tried the latest nightly (which I guess includes #43857) but compilation never ends. It seem to get stuck in :
|
@maximih Thanks for giving it a try! That's interesting. What test case did you use exactly? |
@michaelwoerister I cannot reproduce it after a Thanks for your time! |
Triage: All related issues already seems closed, so let's close this one too. |
I have Code like the following:
When I'm calling
Docker::new
from another crate I get the following linker error:Related symbols from the linked rlib:
And from the object file in question:
I hope this is enough for someone to get an idea, where the problem might be, other wise I can see about publishing a smaller testcase.
cc @michaelwoerister I guess this is related to the collector, which I believe is your area of expertise.
The text was updated successfully, but these errors were encountered: