File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,8 @@ scope of the initializer expression is extended.
273
273
274
274
#### Extending based on expressions
275
275
276
- For a let statement with an initializer, an * extending expression* if it is
276
+ For a let statement with an initializer, an * extending expression* is an
277
+ expression which is one of the following:
277
278
278
279
* The initializer expression.
279
280
* The operand of a extending [ borrow expression] .
@@ -337,6 +338,7 @@ variable or field from being dropped automatically.
337
338
[ initialized ] : glossary.html#initialized
338
339
[ interior mutability ] : interior-mutability.html
339
340
[ lazy boolean expression ] : expressions/operator-expr.html#lazy-boolean-operators
341
+ [ place context ] : expressions.html#place-expressions-and-value-expressions
340
342
[ statement ] : statements.html
341
343
[ temporary ] : expressions.html#temporary-lifetimes
342
344
[ variable ] : variables.html
Original file line number Diff line number Diff line change @@ -154,9 +154,8 @@ The following expressions can be mutable place expression contexts:
154
154
155
155
When using a value expression in most place expression contexts, a temporary
156
156
unnamed memory location is created initialized to that value and the expression
157
- evaluates to that location instead, except if [ promoted] ( #constant-promotion )
158
- to a ` static ` . The [ drop scope] of the temporary is usually the end of the
159
- enclosing statement.
157
+ evaluates to that location instead, except if [ promoted] to a ` static ` . The
158
+ [ drop scope] of the temporary is usually the end of the enclosing statement.
160
159
161
160
### Implicit Borrows
162
161
@@ -249,6 +248,7 @@ They are never allowed before:
249
248
[ interior mutability ] : interior-mutability.html
250
249
[ let statement ] : statements.html#let-statements
251
250
[ Mutable `static` items ] : items/static-items.html#mutable-statics
251
+ [ promoted ] : destructors.html#constant-promotion
252
252
[ slice ] : types/slice.html
253
253
[ statement ] : statements.html
254
254
[ static variables ] : items/static-items.html
You can’t perform that action at this time.
0 commit comments