Skip to content

Commit a2ae9bd

Browse files
committed
remove an obsolete restriction
1 parent b874b5d commit a2ae9bd

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ Language changes in Rust 1.83.0
332332
* `Stabilize \`&mut\`, \`*mut\`, \`&Cell\`, and \`*const Cell\` in const. <https://github.com/rust-lang/rust/pull/129195>`_
333333

334334
* Changed paragraphs: :p:`fls_to4e7imq2c0w`, :p:`fls_6g7c1kjrmfnr`, :p:`fls_hkbwa8xx2fwx`
335+
- Removed paragraph: :p:`fls_ox6sgl9n43g2`
335336

336337
* `Allow creating references to statics in \`const\` initializers. <https://github.com/rust-lang/rust/pull/129759>`_
337338

src/expressions.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,6 @@ A :t:`constant context` is a :t:`construct` that requires a
312312
* :dp:`fls_ucFupTeCyylb`
313313
The :t:`block expression` of a :t:`const block expression`.
314314

315-
:dp:`fls_ox6sgl9n43g2`
316-
It is a static error to create a :t:`mutable reference` in a
317-
:t:`constant context`.
318-
319315
:dp:`fls_od0h3v40kjp6`
320316
An invocation of the :std:`core::ptr::addr_of` :t:`macro` expands to a
321317
:t:`constant expression` allowed in any :t:`constant context` and

0 commit comments

Comments
 (0)