Skip to content

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

Description

@nikomatsakis

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions