Skip to content

Commit 23b87f4

Browse files
committed
1 parent 42f96c5 commit 23b87f4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/changelog.rst

+5
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ Language changes in Rust 1.83.0
5252
* No change: This previous restriction is not specified in the FLS
5353

5454
* `Stabilize \`expr_2021\` macro fragment specifier in all editions. <https://github.com/rust-lang/rust/pull/129972>`_
55+
56+
* Changed syntax: :s:`MacroFragmentSpecifier`
57+
58+
* Changed paragraphs: :p:`fls_k00bck2k8tde`, :p:`fls_PxR9vNHsaFnI`
59+
5560
* `The \`non_local_definitions\` lint now fires on less code and warns by default. <https://github.com/rust-lang/rust/pull/127117>`_
5661

5762
Language changes in Rust 1.82.0

src/macros.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ Metavariables
119119
MacroFragmentSpecifier ::=
120120
$$block$$
121121
| $$expr$$
122+
| $$expr_2021$$
122123
| $$ident$$
123124
| $$item$$
124125
| $$lifetime$$
@@ -158,7 +159,7 @@ a :t:`metavariable`.
158159
:dt:`[fragment specifier restriction]s` on the :t:`[token]s` that follow them:
159160

160161
* :dp:`fls_PxR9vNHsaFnI`
161-
``expr`` shall only be followed by ``=>``, ``,``, or ``;``.
162+
``expr`` and ``expr_2021`` shall only be followed by ``=>``, ``,``, or ``;``.
162163

163164
* :dp:`fls_ePyoTeJJ11N0`
164165
``pat`` shall only be followed by ``=>``, ``,``, ``=``, ``|``, ``if``, or
@@ -840,7 +841,7 @@ A :t:`metavariable` in a :t:`macro matcher` is matched against a sequence of
840841
:t:`Fragment specifier` **block** requires a :t:`block expression`.
841842

842843
* :dp:`fls_k00bck2k8tde`
843-
:t:`Fragment specifier` **expr** requires an :t:`expression`.
844+
:t:`Fragment specifier` **expr** and **expr_2021** requires an :t:`expression` that is not an :t:`underscore expression` or :t:`const block expression`.
844845

845846
* :dp:`fls_pf0qrz5nadl2`
846847
:t:`Fragment specifier` **ident** requires a :t:`pure identifier`.

0 commit comments

Comments
 (0)