Skip to content

inference is not generalizing in a complete way #164

@nikomatsakis

Description

@nikomatsakis

Reading the code with @lcnr and @compiler-errors we found that...

General sketch of the algorithm we want

  • walk down the non-variable type T and look for aliases
  • if the alias references a variable bound in T, then return "ambiguous, can't make progress"
  • otherwise, replace it with an inference variable (and a new resulting goal)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions