Skip to content

Commit 22cee9e

Browse files
committed
Specify #128596 changes
1 parent 821e5f3 commit 22cee9e

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/changelog.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ Language changes in Rust 1.82.0
8888

8989
* `Stabilize floating-point arithmetic in \`const fn\` <https://github.com/rust-lang/rust/pull/128596>`_
9090

91+
* New paragraph: :p:`fls_lSxXWxJn0vMO`
92+
93+
* Removed paragraph: :p:`fls_9mrrosm8jnn7`
94+
9195
* `Stabilize explicit opt-in to unsafe attributes <https://github.com/rust-lang/rust/pull/128771>`_
9296

9397
* New section: :ref:`fls_19LnTi3WabFd`

src/expressions.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,6 @@ explicitly invokes an :t:`associated trait function` or uses
280280
:t:`[arithmetic operator]s` of non-builtin :t:`[type]s` that invoke
281281
:std:`core::ops` :t:`[trait]s`.
282282

283-
:dp:`fls_9mrrosm8jnn7`
284-
An :t:`arithmetic expression` that operates with :t:`[floating-point value]s` is
285-
not considered a :t:`constant expression` when it appears inside the
286-
:t:`function body` of a :t:`constant function`.
287-
288283
:dp:`fls_fmqar6o1bwqk`
289284
It is a static error if the :t:`size operand` of an
290285
:t:`array repetition constructor` or an :t:`array type` depends on
@@ -938,6 +933,11 @@ Operator Expressions
938933
:dp:`fls_ursc5ynymoy`
939934
An :t:`operator expression` is an :t:`expression` that involves an operator.
940935

936+
.. rubric:: Dynamic Semantics
937+
938+
:dp:`fls_lSxXWxJn0vMO`
939+
An :t:`operator expression` that operates with :t:`[floating-point value]s` run as a :t:`constant expression` is allowed to yield different :t:`[value]s` compared to when run as a non-:t:`constant expression`.
940+
941941
.. _fls_qztk0bkju9u:
942942

943943
Borrow Expression

0 commit comments

Comments
 (0)