Description
This is a tracking issue for the RFC 3498, "Lifetime Capture Rules 2024" (rust-lang/rfcs#3498). The feature gate for the issue is #![feature(lifetime_capture_rules_2024)]
.
In Rust 2024 and later editions, return position impl Trait
(RPIT) opaque types will automatically capture all in-scope type and lifetime parameters. In preparation for this, new RPIT-like impl Trait
features introduced into earlier editions will also automatically capture all in-scope type and lifetime parameters.
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
- Implement the RFC: Implement 2024-edition lifetime capture rules RFC #116952
- Stabilize some means of precise capturing
- Connect the
impl_trait_overcaptures
lint torust_2024_compatibility
. - Add documentation to the reference.
- Add documentation to the edition guide.
- Implement the rules for RPITIT/AFIT
- Stabilize the rules for RPITIT/AFIT
- Implement the rules for ATPIT
- Stabilization PR (in nightly Rust 2024)
- Stabilize Rust 2024
Related
Metadata
Metadata
Assignees
Labels
Type
Projects
Status