-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking issue for precise_capturing syntax #123432
Copy link
Copy link
Closed
Labels
A-edition-2024Area: The 2024 editionArea: The 2024 editionB-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.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-precise_capturing`#![feature(precise_capturing)]``#![feature(precise_capturing)]`S-tracking-ready-for-editionStatus: This issue is ready for inclusion in the edition.Status: This issue is ready for inclusion in the edition.T-langRelevant to the language teamRelevant to the language team
Metadata
Metadata
Assignees
Labels
A-edition-2024Area: The 2024 editionArea: The 2024 editionB-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.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-precise_capturing`#![feature(precise_capturing)]``#![feature(precise_capturing)]`S-tracking-ready-for-editionStatus: This issue is ready for inclusion in the edition.Status: This issue is ready for inclusion in the edition.T-langRelevant to the language teamRelevant to the language team
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is a tracking issue for precise capturing of type and lifetime parameters in
impl Traitopaque types.The feature gate for the issue is
#![feature(precise_capturing)].About tracking issues
Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
impl Traitto specify its captures explicitly (feature(precise_capturing)) #123468incomplete_featureslint fromuse<..>syntax.use<..>within RPITIT.use<>for RPITITs #126746impl use<..>vsuse<..> impl.impl Trait + use<..>#125836feature(precise_capturing)to representuse<...>as a syntactical bound #126049rustfmt.use<>formatting in rustfmt #126754use<..>syntax.precise_capturinguse<>syntax #126753Related
use<'a, T>precise capturing bounds as verbatim dtolnay/syn#1707impl use<..> Traitvsuse<..> impl Traitlang-team#269impl Trait + use<..>#125836use<>for RPITITs #126746precise_capturinguse<>syntax #126753use<>formatting in rustfmt #126754precise_capturingsupport for rustdoc #127632+ use<..>precise_capturingsyntax rust-analyzer#17598+ use<..>precise_capturingsyntax rust-analyzer#17676Implementation history
impl Traitto specify its captures explicitly (feature(precise_capturing)) #123468cc @oli-obk @compiler-errors @rust-lang/style