-
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
Regression: linking errors since latest nightly #34754
Comments
After some investigation, the linking errors are the names of the five provided methods of the https://github.com/lifthrasiir/rust-encoding/blob/058aeac4c622337b97fce52e3ae34df5fb9451f1/src/types.rs#L192 And also these four functions as well: Interestingly, there are other chunks of code that are very similar (they implement (note: don't look at the EDIT: removed wrong stuff |
Couldn't reproduce on Linux. This is likely specific to MSVC. |
@tomaka Thanks that's all already very valuable information. It seems that you are compiling things with multiple codegen units. Does the error also occur if you with just one codegen unit? |
@michaelwoerister Good point, I had totally forgotten about codegen units. Compiling with |
@tomaka OK, that narrows the problem down somewhat. |
|
All the errors are the ones I linked above. The 5 default methods and the 4 methods of the trait implementation (of which only 1 overwrites a default method).
No. That's why I don't really know where to look for to find a repro. |
If you wish so I can also upload the project to a private location. |
@tomaka That would be helpful. |
OK, I was able to reproduce this. It seems to have to do something with constants storing trait-objects ( |
Update |
triage: P-high |
I'll see that I'll take care of this next week. |
@mw status update? This will go to beta on 8/18. |
There were a few refactorings I needed to do before being able to fix this. These have landed by now, so I expect that the actual fix should be ready before beta. |
Sweet! |
Update from @rust-lang/compiler meeting: fix is in the queue, upping priority since this is a regression. |
…matsakis Make the translation item collector handle *uses* of 'const' items instead of declarations. This should fix issue #34754.
So, this should be fixed (via #35534) but there is no nightly containing the fix yet. |
OK, the latest nightly contains the fix. Could you please test whether it solves your problem? (and close the issue if it does) |
Thanks, seems to work! |
Unfortunately I don't have any repro case, as my repro case is my big closed source project that I don't want to be public. Some other smaller projects of mine which use the same libraries and which I thought would trigger the same issue in fact do not trigger the same issue.
After some discussion on IRC, I decided to open an issue despite having no repro to show.
With the 2016-07-03 nightly (commit 696b703), the project compiles fine.
But with the 2016-07-08 nightly (commit 5e18b4b), I'm getting linking errors:
This is with the MSVC 64bits version of Rust.
According to IRC, the culprit is likely #33890
The text was updated successfully, but these errors were encountered: