Skip to content

Clarify and document region nesting rules #10151

@nikomatsakis

Description

@nikomatsakis

We currently infer some special relationships between regions based on region nesting. i.e., if you have fn foo<'a,'b>(x: &'a &'b int), we infer that 'a <= 'b. This is important for type checking impls, though it will become less so (and possibly irrelevant even) after DST (#6308) lands. In any case, in the meantime, as part of formalizing the type system, we should clarify precisely which kinds of nesting relationships yield subtyping relations. I have a FIXME in the code for the spot where this ought to be done.

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