Skip to content

Tracking issue for member constraints in region inference #61997

Closed
@nikomatsakis

Description

@nikomatsakis
Contributor

Member constraints

#61775 introduced "member constraints" as part of stabilizing async functions. These extend region inference to accommodate impl Trait return types that contain multiple unrelated lifetimes (e.g., impl Trait<'a, 'b> where neither 'a: 'b nor 'b: 'a). We decided to introduce a feature gate for other cases until we have time to gain more experience.

Learn more

The working of these constraints is described in the rustc-guide -- as of this writing, however, the PR has not yet landed.

Current status

Related issues

Activity

added
T-langRelevant to the language team
B-unstableBlocker: Implemented in the nightly compiler and unstable.
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
on Jun 20, 2019
added
A-impl-traitArea: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-lifetimesArea: Lifetimes / regions
on Jun 20, 2019
runiq

runiq commented on Jul 29, 2019

@runiq

Triage: The first two boxes can be checked and the rustc-guide PR has landed, so this:

as of this writing, however, the PR has not yet landed.

is inaccurate now, which is a good thing. :)

nikomatsakis

nikomatsakis commented on Apr 26, 2021

@nikomatsakis
ContributorAuthor

I am beginning work towards stabilizing this.

@rustbot claim

added a commit that references this issue on May 25, 2021

Rollup merge of rust-lang#84701 - nikomatsakis:stabilize-member-const…

cae27c0

6 remaining items

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

Metadata

Metadata

Assignees

Labels

A-impl-traitArea: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.A-inferenceArea: Type inferenceA-lifetimesArea: Lifetimes / regionsA-member-constraints`#[feature(member_constraints)]`B-unstableBlocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-langRelevant to the language team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @nikomatsakis@runiq@Centril

      Issue actions

        Tracking issue for member constraints in region inference · Issue #61997 · rust-lang/rust