Skip to content

Commit 7577c69

Browse files
committed
move rule to a proper list
1 parent 6465ff2 commit 7577c69

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/expressions.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@ involve :t:`[type]s` that require :t:`destruction`:
271271
* :dp:`fls_qvofy4wkql0s`
272272
:t:`[While loop expression]s`.
273273

274+
* :dp:`fls_zyuxqty09SDO`
275+
All forms of :t:`[borrow]s` except those of expressions that are subject to
276+
:t:`drop scope extension` to the end of the program
277+
and which are either :t:`[mutable borrow]s`
278+
or borrows of expressions that result in values with :t:`interior mutability`.
279+
274280
:dp:`fls_3i7efddbsmn0`
275281
An :t:`expression` is not considered a :t:`constant expression` when it
276282
explicitly invokes an :t:`associated trait function` or uses
@@ -312,12 +318,6 @@ A :t:`constant context` is a :t:`construct` that requires a
312318
* :dp:`fls_ucFupTeCyylb`
313319
The :t:`block expression` of a :t:`const block expression`.
314320

315-
* :dp:`fls_zyuxqty09SDO`
316-
All forms of :t:`[borrow]s` except those of expressions that are subject to
317-
:t:`drop scope extension` to the end of the program
318-
and which are either :t:`[mutable borrow]s`
319-
or borrows of expressions that result in values with :t:`interior mutability`.
320-
321321
:dp:`fls_od0h3v40kjp6`
322322
An invocation of the :std:`core::ptr::addr_of` :t:`macro` expands to a
323323
:t:`constant expression` allowed in any :t:`constant context` and

0 commit comments

Comments
 (0)