This is a tracking issue for precise capturing of type and lifetime parameters in impl Trait opaque 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
Related
Implementation history
cc @oli-obk @compiler-errors @rust-lang/style
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