File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,9 @@ r[const-eval.const-expr.builtin-arith-logic]
83
83
r[ const-eval.const-expr.borrows]
84
84
* All forms of [ borrow] s, including raw borrows, with one limitation:
85
85
mutable borrows and shared borrows to values with interior mutability
86
- are only allowed to refer to * transient* places. A place is * transient*
86
+ are only allowed to refer to * transient* places or to * static * places . A place is * transient*
87
87
if its lifetime is strictly contained inside the current [ const context] .
88
+ A place is * static* if it is a ` static ` item or a [ promoted expression] .
88
89
89
90
r[ const-eval.const-expr.deref]
90
91
* The [ dereference operator] except for raw pointers.
@@ -195,6 +196,7 @@ of whether you are building on a `64` bit or a `32` bit system.
195
196
[ overflow ] : expressions/operator-expr.md#overflow
196
197
[ paths ] : expressions/path-expr.md
197
198
[ patterns ] : patterns.md
199
+ [ promoted expression ] : destructors.md#constant-promotion
198
200
[ range expressions ] : expressions/range-expr.md
199
201
[ slice ] : types/slice.md
200
202
[ statics ] : items/static-items.md
You can’t perform that action at this time.
0 commit comments