Skip to content

Commit aef9b00

Browse files
committed
more precise wording
1 parent 34f678c commit aef9b00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

promotion.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ declaration. We can thus be less conservative. This is called *explicit*
9999
promotion.
100100

101101
Currently, the following are considered explicit promotion contexts:
102-
* `#[rustc_args_required_const]` arguments and inline assembly `const` operands
102+
* `#[rustc_args_required_const]` arguments and inline assembly `const` operands everywhere
103103
* lifetime extension in the bodies of `const` and `static` items and array lengths
104-
* the bodies of `const fn` -- but this is not justified by the above discussion; since `const fn` can be runtime-evaluated, the concerns about introducing hard errors where there would be none apply for `const fn` in exactly the same way as for `fn`, but this was overlooked when implementing the checks
104+
* lifetime extension in the bodies of `const fn` -- but this is not justified by the above discussion; since `const fn` can be runtime-evaluated, the concerns about introducing hard errors where there would be none apply for `const fn` in exactly the same way as for `fn`, but this was overlooked when implementing the checks
105105

106106
Everything else is an implicit promotion context, in particular non-`Copy` array initializers.
107107

0 commit comments

Comments
 (0)