Skip to content

Commit

Permalink
talk about const context, not const items
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Aug 28, 2024
1 parent 1bacab1 commit aa1dab6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/const_eval.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ to be run.
* All forms of [borrow]s, including raw borrows, with one limitation:
mutable borrows and shared borrows to values with interior mutability
are only allowed to refer to *transient* places. A place is *transient*
if it will be deallocated before the end of evaluating the current constant item.
if its lifetime is strictly contained inside the current [const context].
* The [dereference operator].
* [Grouped] expressions.
* [Cast] expressions, except
Expand All @@ -52,6 +52,7 @@ to be run.
* [if], [`if let`] and [match] expressions.

## Const context
[const context]: #const-context

A _const context_ is one of the following:

Expand Down

0 comments on commit aa1dab6

Please sign in to comment.