Skip to content

Commit c4e4cb4

Browse files
committed
Say "into earlier editions" rather than into Rust 2021
In this RFC, we're specifying the capture rules for new RPIT-like `impl Trait` features that may be introduced ahead of the Rust 2024 edition. We had described those as features "introduced into the Rust 2021 edition", but actually, new features are introduced where possible into all editions, so it's more correct to describe the features as being "introduced into earlier editions". Let's make that change. (Thanks to @tmandry for the suggestion.)
1 parent ff0cd24 commit c4e4cb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/3498-lifetime-capture-rules-2024.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# Summary
77

8-
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 the Rust 2021 edition will also automatically capture all in-scope type and lifetime parameters.
8+
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.
99

1010
# Background
1111

@@ -218,7 +218,7 @@ In summary, in Rust 2021, the lifetime capture rules for RPIT opaque types are u
218218

219219
This section is normative.
220220

221-
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 the Rust 2021 edition will also automatically capture all in-scope type and lifetime parameters.
221+
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.
222222

223223
## Apply `async fn` rule to RPIT in 2024 edition
224224

0 commit comments

Comments
 (0)