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
3737
3838### ` #[rustc_args_required_const(...)] `
3939
40- Additionally, some platform intrinsics require certain operations to be
40+ Additionally, some platform intrinsics require certain parameters to be
4141immediates (known at compile-time). We use the ` #[rustc_args_required_const] `
4242attribute, introduced in
4343[ 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.
7676
7777We defined above that promotion guarantees that code in a non-const context
7878will 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
8080well. Strictly speaking, the transformation used to enable these features
8181inside a const-context is not promotion; no ` promoted ` s are created in the MIR.
8282However the same rules for promotability are used with one modification:
You can’t perform that action at this time.
0 commit comments