-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Generic Tuple-like Structs do not work cross-crate #7899
Comments
@graydon: Just so you know what's going on with SIMD shuffles, I tried, but implementing it with #[lang=…] and generics is blocked bug. |
Part of #7435, presumably. Nominating for feature complete. |
I got bitten by this. If fixing it is not easy, it would be good to at least have a less cryptic error message. Switching to structs with fields is easy enough… once you know that tuple-like structs are the problem. It took me a while to figure out. |
Accepted for production-ready |
(should we try to improve the error message sooner than "production-ready" ... probably worth considering ....) |
@blake2-ppc has noticed that this has been fixed, flagging as needstest. |
false alarm |
Visiting for triage. Works. Would suggest to close it. testcrate.rs: pub struct V2<T>(T, T); rustc --crate-type lib testcrate.rs main.rs: extern crate testcrate;
fn main() {
let f = testcrate::V2(1.0f32, 2.0f32);
} rustc -L . main.rs |
Flagging as needstest |
Refactoring `FullInt` Refactoring `FullInt` changelog: None
First the crate testcrate.rs,
then the actual test,
This gives the unexpected error,
The text was updated successfully, but these errors were encountered: