Skip to content

Commit e686ac8

Browse files
committed
Specify #128570 changes
1 parent bb57d51 commit e686ac8

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

src/changelog.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ Language changes in Rust 1.82.0
6464

6565
* `Stabilize \`const\` operands in inline assembly <https://github.com/rust-lang/rust/pull/128570>`_
6666

67+
* Note: These changes affect content that is informational.
68+
69+
* New syntax: :s:`ConstRegisterExpression`
70+
71+
* New paragraphs: :p:`fls_81Ju1TEqJ48K`, :p:`fls_j9XOoXDmN5Dq`, :p:`fls_jU8zg4k8dFsY`
72+
6773
* `Stabilize floating-point arithmetic in \`const fn\` <https://github.com/rust-lang/rust/pull/128596>`_
6874

6975
* `Stabilize explicit opt-in to unsafe attributes <https://github.com/rust-lang/rust/pull/128771>`_

src/inline-assembly.rst

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ Register Arguments
616616
RegisterExpression ::=
617617
InputOutputRegisterExpression
618618
| SimpleRegisterExpression
619+
| ConstRegisterExpression
619620
620621
InputOutputRegisterExpression ::=
621622
InputRegisterExpression $$=>$$ OutputRegisterExpression
@@ -631,6 +632,9 @@ Register Arguments
631632
Expression
632633
| UnderscoreExpression
633634
635+
ConstRegisterExpression ::=
636+
$$const$$ Expression
637+
634638
.. rubric:: Legality Rules
635639

636640
:dp:`fls_455dmnp4cxqv`
@@ -682,6 +686,9 @@ initial :t:`value` of a :t:`register`.
682686
An :t:`output register expression` is an :t:`expression` that is assigned the
683687
:t:`value` of a :t:`register`.
684688

689+
:dp:`fls_81Ju1TEqJ48K`
690+
A :dt:`const register expression` is an :t:`expression` that is evaluated at compile-time.
691+
685692
:dp:`fls_kkrcyk96w8x1`
686693
An :t:`input-output register expression` is a :t:`construct` that specifies
687694
both an :t:`input register expression` and an :t:`output register expression`.
@@ -690,9 +697,11 @@ both an :t:`input register expression` and an :t:`output register expression`.
690697
A :t:`simple register expression` is either an :t:`expression` or an
691698
:t:`underscore expression`.
692699

693-
:dp:`fls_vu30cuq4y0ht`
694-
A :t:`register expression` is either an :t:`input-output register expression`
695-
or a :t:`simple register expression`.
700+
:dp:`fls_j9XOoXDmN5Dq`
701+
A :t:`register expression` is either an :t:`input-output register expression`, a :t:`simple register expression` or a :t:`const register expression`.
702+
703+
:dp:`fls_jU8zg4k8dFsY`
704+
The :t:`type` of a :t:`const register expression` shall be an :t:`integer type`.
696705

697706
:dp:`fls_66owmltvhnu4`
698707
The :t:`type` of an :t:`input register expression`,

0 commit comments

Comments
 (0)