File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ non-`Copy` types to be initialized idiomatically, for example
37
37
38
38
### ` #[rustc_args_required_const(...)] `
39
39
40
- Additionally, some platform intrinsics require certain operations to be
40
+ Additionally, some platform intrinsics require certain parameters to be
41
41
immediates (known at compile-time). We use the ` #[rustc_args_required_const] `
42
42
attribute, introduced in
43
43
[ rust-lang/rust #48018 ] ( https://github.com/rust-lang/rust/pull/48018 ) , to
@@ -76,7 +76,7 @@ implicit context are a superset of the ones in an explicit context.
76
76
77
77
We defined above that promotion guarantees that code in a non-const context
78
78
will be executed at compile-time. However, lifetime extension and non-` Copy `
79
- array initialziation are useful features * inside* ` const ` s and ` static ` s as
79
+ array initialization are useful features * inside* ` const ` s and ` static ` s as
80
80
well. Strictly speaking, the transformation used to enable these features
81
81
inside a const-context is not promotion; no ` promoted ` s are created in the MIR.
82
82
However the same rules for promotability are used with one modification:
You can’t perform that action at this time.
0 commit comments