Skip to content

Don't infer regions in type checking #68261

Open

Description

This is a tracking issue for avoiding region inference in item body type checking. The goal would be to use ReErased where we currently use ReVar as much as possible.

The motivations for this are:

  • It would avoid doing region inference twice (once in typeck, once in borrowck).
  • It might improve caching since there are fewer distinct types.
  • It ensures that region inference cannot affect later passes.

cc @nikomatsakis

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

Metadata

Assignees

No one assigned

    Labels

    A-NLLArea: Non-lexical lifetimes (NLL)A-inferenceArea: Type inferenceA-lifetimesArea: Lifetimes / regionsC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions