Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Dec 9, 2024
1 parent bd199ad commit 690ce96
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ Language changes in Rust 1.83.0
* No change: This previous restriction is not specified in the FLS

* `Stabilize \`expr_2021\` macro fragment specifier in all editions. <https://github.com/rust-lang/rust/pull/129972>`_

* Changed syntax: :s:`MacroFragmentSpecifier`

* Changed paragraphs: :p:`fls_k00bck2k8tde`, :p:`fls_PxR9vNHsaFnI`

* `The \`non_local_definitions\` lint now fires on less code and warns by default. <https://github.com/rust-lang/rust/pull/127117>`_

Language changes in Rust 1.82.0
Expand Down
5 changes: 3 additions & 2 deletions src/macros.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Metavariables
MacroFragmentSpecifier ::=
$$block$$
| $$expr$$
| $$expr_2021$$
| $$ident$$
| $$item$$
| $$lifetime$$
Expand Down Expand Up @@ -158,7 +159,7 @@ a :t:`metavariable`.
:dt:`[fragment specifier restriction]s` on the :t:`[token]s` that follow them:

* :dp:`fls_PxR9vNHsaFnI`
``expr`` shall only be followed by ``=>``, ``,``, or ``;``.
``expr`` and ``expr_2021`` shall only be followed by ``=>``, ``,``, or ``;``.

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

* :dp:`fls_k00bck2k8tde`
:t:`Fragment specifier` **expr** requires an :t:`expression`.
:t:`Fragment specifier` **expr** and **expr** requires an :t:`expression` that is not an :t:`underscore expression` or :t:`const block expression`.

* :dp:`fls_pf0qrz5nadl2`
:t:`Fragment specifier` **ident** requires a :t:`pure identifier`.
Expand Down

0 comments on commit 690ce96

Please sign in to comment.