-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
A-lifetimesLifetime related proposals.Lifetime related proposals.A-syntaxSyntax related proposals & ideasSyntax related proposals & ideasT-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.postponedRFCs that have been postponed and may be revisited at a later time.RFCs that have been postponed and may be revisited at a later time.
Description
Currently in Rust lifetimes must be inferred. It would be nice to be able to name all lifetimes and be able to pass explicit, actual lifetime parameters to functions and data types. This is useful for 'debugging' type/borrow check errors. For lexically scoped lifetimes, this probably just means naming scopes. For non-lexically scoped lifetimes, this will be more challenging. We might not be able to do better than naming upper and lower bounds for the lifetime with named scopes.
Metadata
Metadata
Assignees
Labels
A-lifetimesLifetime related proposals.Lifetime related proposals.A-syntaxSyntax related proposals & ideasSyntax related proposals & ideasT-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.postponedRFCs that have been postponed and may be revisited at a later time.RFCs that have been postponed and may be revisited at a later time.