Skip to content
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

cross-crate calls to generic class methods yields unconstraind tvars #2323

Closed
nikomatsakis opened this issue May 1, 2012 · 2 comments
Closed
Labels
A-typesystem Area: The type system
Milestone

Comments

@nikomatsakis
Copy link
Contributor

I recently made a change that reports errors for unconstrained type variables rather than resolving them to bottom (the latter was causing confusion). This seems to have unearthed a problem with cross-crate method calls on classes where we end up with unconstrained type variables. Specifically: the class type variables seem to be unresolved. I believe the problem has to do with the encoding, which encodes both the class tps and method tps together rather than just the method tps. But if I just revert this line, it causes failures in kind---my belief there is that there is some compensatory logic. But I didn't spend enough time to be sure, I could just be misunderstanding how it works. Anyway, for now I have xfailed src/test/run-pass/class-poly-methods-cross-crate.rs

@ghost ghost assigned catamorphism May 1, 2012
@brson
Copy link
Contributor

brson commented Jul 9, 2012

punting to 0.4

@nikomatsakis
Copy link
Contributor Author

I had already fixed this.

bors added a commit to rust-lang-ci/rust that referenced this issue Sep 22, 2022
handle Box with allocators

This is the Miri side of rust-lang#98847.

Thanks `@DrMeepster` for doing most of the work of getting this test case to pass in Miri. :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-typesystem Area: The type system
Projects
None yet
Development

No branches or pull requests

3 participants