Skip to content

Commit 59be7f9

Browse files
committed
Add open question about Rust 2015 and Rust 2018
In RFC 3101 we reserved in Rust 2021 prefixed identifiers such as `prefix#ident`. For this reason, we can make `gen` blocks available in Rust 2021 using `k#gen` as was anticipated in the (currently pending) RFC 3098. It's less clear what to do about Rust 2015 and Rust 2018, however, so let's mark this as an open question. (Thanks to tmandry for raising this point.)
1 parent 4bf6106 commit 59be7f9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

text/3513-gen-blocks.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ gen {
134134

135135
## New keyword
136136

137-
In the 2024 edition we reserve `gen` as a keyword. Previous editions will use `k#gen` to get the same features.
137+
In the 2024 edition we reserve `gen` as a keyword. Rust 2021 will use `k#gen` to access the same feature. What to do about earlier editions is left as an open question.
138138

139139
## Error handling
140140

@@ -619,6 +619,15 @@ Should we try to compute a conservative `size_hint`? This will reveal informatio
619619

620620
Is there a possibility for implementing traits like `DoubleEndedIterator`, `ExactSizeIterator` at all?
621621

622+
## What to do about Rust 2015 and Rust 2018
623+
624+
In [RFC 3101][] we reserved prefixed identifiers such as `prefix#ident`. For this reason, we can make `gen` blocks available in Rust 2021 using `k#gen` as was anticipated in the (currently pending) [RFC 3098][].
625+
626+
Whether and how to make this feature available in Rust 2015 and Rust 2018, however, we leave as an open question.
627+
628+
[RFC 3098]: https://github.com/rust-lang/rfcs/pull/3098
629+
[RFC 3101]: https://github.com/rust-lang/rfcs/pull/3101
630+
622631
# Future possibilities
623632
[future-possibilities]: #future-possibilities
624633

0 commit comments

Comments
 (0)