File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 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.
273273
274274#### Extending based on expressions
275275
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:
277278
278279* The initializer expression.
279280* The operand of a extending [ borrow expression] .
@@ -337,6 +338,7 @@ variable or field from being dropped automatically.
337338[ initialized ] : glossary.html#initialized
338339[ interior mutability ] : interior-mutability.html
339340[ lazy boolean expression ] : expressions/operator-expr.html#lazy-boolean-operators
341+ [ place context ] : expressions.html#place-expressions-and-value-expressions
340342[ statement ] : statements.html
341343[ temporary ] : expressions.html#temporary-lifetimes
342344[ 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:
154154
155155When using a value expression in most place expression contexts, a temporary
156156unnamed 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.
160159
161160### Implicit Borrows
162161
@@ -249,6 +248,7 @@ They are never allowed before:
249248[ interior mutability ] : interior-mutability.html
250249[ let statement ] : statements.html#let-statements
251250[ Mutable `static` items ] : items/static-items.html#mutable-statics
251+ [ promoted ] : destructors.html#constant-promotion
252252[ slice ] : types/slice.html
253253[ statement ] : statements.html
254254[ static variables ] : items/static-items.html
You can’t perform that action at this time.
0 commit comments