Skip to content

Commit aa1dab6

Browse files
committed
talk about const context, not const items
1 parent 1bacab1 commit aa1dab6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/const_eval.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ to be run.
4141
* All forms of [borrow]s, including raw borrows, with one limitation:
4242
mutable borrows and shared borrows to values with interior mutability
4343
are only allowed to refer to *transient* places. A place is *transient*
44-
if it will be deallocated before the end of evaluating the current constant item.
44+
if its lifetime is strictly contained inside the current [const context].
4545
* The [dereference operator].
4646
* [Grouped] expressions.
4747
* [Cast] expressions, except
@@ -52,6 +52,7 @@ to be run.
5252
* [if], [`if let`] and [match] expressions.
5353

5454
## Const context
55+
[const context]: #const-context
5556

5657
A _const context_ is one of the following:
5758

0 commit comments

Comments
 (0)