-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-trait-systemArea: Trait systemArea: Trait systemB-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.B-RFC-implementedBlocker: Approved by a merged RFC and implemented but not stabilized.Blocker: Approved by a merged RFC and implemented but not stabilized.B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-associated_type_bounds`#![feature(associated_type_bounds)]``#![feature(associated_type_bounds)]`S-tracking-impl-incompleteStatus: The implementation is incomplete.Status: The implementation is incomplete.S-types-trackedStatus: Being actively tracked by the types teamStatus: Being actively tracked by the types teamT-langRelevant to the language teamRelevant to the language teamT-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Description
This is a tracking issue for the RFC "Associated type bounds of form MyTrait<AssociatedType: Bounds>
" (rust-lang/rfcs#2289). The feature gate is #![feature(associated_type_bounds)]
.
Steps:
- Implement the RFC - Implementation of RFC 2289 (associated_type_bounds) #57428
- Adjust documentation (see instructions on forge)
- Stabilization PR (see instructions on forge)
Unresolved questions:
-
Does allowing this for
dyn
trait objects introduce any unforeseen issues? This can be resolved during stabilization.- Use for trait objects has been forbidden in Remove support for
associated_type_bound
nested indyn
types #120719
- Use for trait objects has been forbidden in Remove support for
-
Resolve exact desugaring in the context of putting bounds on an associated type of a trait. See discussion in the RFC.
-
Consider nested lifetimes, https://gist.github.com/Centril/b0e62d31d4ae1849535c3e506e1fad64.
TODO:
ebkalderon, runiq, Jonathas-Conceicao, 0xpr03, rodrigocfd and 69 moreLukasKalbertodt, jonhoo, estebank, ronlobo, IsakSundeSingh and 20 morebenluelot4lz, maxvonhippel and zohnannor
Metadata
Metadata
Assignees
Labels
A-trait-systemArea: Trait systemArea: Trait systemB-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.B-RFC-implementedBlocker: Approved by a merged RFC and implemented but not stabilized.Blocker: Approved by a merged RFC and implemented but not stabilized.B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-associated_type_bounds`#![feature(associated_type_bounds)]``#![feature(associated_type_bounds)]`S-tracking-impl-incompleteStatus: The implementation is incomplete.Status: The implementation is incomplete.S-types-trackedStatus: Being actively tracked by the types teamStatus: Being actively tracked by the types teamT-langRelevant to the language teamRelevant to the language teamT-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.