You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.)
Copy file name to clipboardExpand all lines: text/3513-gen-blocks.md
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,7 @@ gen {
134
134
135
135
## New keyword
136
136
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.
138
138
139
139
## Error handling
140
140
@@ -619,6 +619,15 @@ Should we try to compute a conservative `size_hint`? This will reveal informatio
619
619
620
620
Is there a possibility for implementing traits like `DoubleEndedIterator`, `ExactSizeIterator` at all?
621
621
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.
0 commit comments