We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
[T]::as_mut_ptr
const fn
1 parent c43d3bf commit 41d59d9Copy full SHA for 41d59d9
src/r3/src/utils/for_times.rs
@@ -203,7 +203,7 @@ macro_rules! const_array_from_fn {
203
) => {{
204
use core::mem::MaybeUninit;
205
use $crate::utils::for_times::Nat;
206
- let array = [MaybeUninit::uninit(); $len_value];
+ let mut array = [MaybeUninit::uninit(); $len_value];
207
208
if array.len() != <$len as Nat>::N {
209
unreachable!();
@@ -228,8 +228,7 @@ macro_rules! const_array_from_fn {
228
}
229
230
(0..$len).for_each(|i| iter::<[$($ctx_t),*], i>(
231
- // FIXME: `[T]::as_mut_ptr` is not `const fn` yet
232
- &mut ($ctx, array.as_ptr() as *mut _)
+ &mut ($ctx, array.as_mut_ptr())
233
))
234
235
0 commit comments