You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: text/3027-infallible-promotion.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Restrict (implicit) [promotion][rfc1414], such as lifetime extension of rvalues,
17
17
18
18
Rvalue promotion (as it was originally called) describes the process of taking an rvalue that can be computed at compile-time, and "promoting" it to a constant, so that references to that rvalue can have `'static` lifetime.
19
19
It has been introduced by [RFC 1414][rfc1414].
20
-
The scope of what exactly is being promoted in which context has been extended over the years in an ad-hoc manner, and the underlying mechanism of promotion (to extract a part of a larger body of code into a separate constant) is now also used for purposes other than making references have `'statc` lifetime.
20
+
The scope of what exactly is being promoted in which context has been extended over the years in an ad-hoc manner, and the underlying mechanism of promotion (to extract a part of a larger body of code into a separate constant) is now also used for purposes other than making references have `'static` lifetime.
21
21
To account for this, the const-eval WG [agreed on the following terminology][promotion-status]:
22
22
* Making references have `'static` lifetime is called "lifetime extension".
23
23
* The underlying mechanism of extracting part of some code into a constant is called "promotion".
0 commit comments