@@ -143,12 +143,12 @@ unnamed memory location is created initialized to that value and the expression
143143evaluates to that location instead, except if promoted to ` 'static ` . Promotion
144144of a value expression to a ` 'static ` slot occurs when the expression could be
145145written in a constant, borrowed, and dereferencing that borrow where the
146- expression was the originally written, without changing the runtime behavior.
147- That is, the promoted expression can be evaluated at compile-time and the
148- resulting value does not contain [ interior mutability] or [ destructors] (these
149- properties are determined based on the value where possible, e.g. ` &None `
150- always has the type ` &'static Option<_> ` , as it contains nothing disallowed).
151- Otherwise, the lifetime of temporary values is typically
146+ expression was originally written, without changing the runtime behavior. That
147+ is, the promoted expression can be evaluated at compile-time and the resulting
148+ value does not contain [ interior mutability] or [ destructors] (these properties
149+ are determined based on the value where possible, e.g. ` &None ` always has the
150+ type ` &'static Option<_> ` , as it contains nothing disallowed). Otherwise, the
151+ lifetime of temporary values is typically
152152
153153- the innermost enclosing statement; the tail expression of a block is
154154 considered part of the statement that encloses the block, or
0 commit comments