|
21 | 21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
22 | 22 | // SOFTWARE. |
23 | 23 | // |
24 | | -#![feature(asm_const, maybe_uninit_uninit_array, maybe_uninit_array_assume_init)] |
| 24 | +#![feature(maybe_uninit_array_assume_init)] |
25 | 25 | use std::collections::HashMap; |
26 | 26 |
|
27 | 27 | use const_fnv1a_hash::fnv1a_hash_str_64; |
@@ -83,7 +83,7 @@ macro_rules! syscall { |
83 | 83 | (@count_tts $($a:tt $even:tt)*) => { syscall!(@count_tts $($a)*) << 1 }; |
84 | 84 |
|
85 | 85 | ($fun:ident($($args:expr$(,)?)*)) => {{ |
86 | | - #[allow(unreachable_code, unused_unsafe, unused_mut, unused_assignments, unused_variables)] |
| 86 | + #[allow(unreachable_code, unused_unsafe, unused_mut, unused_assignments, unused_variables, static_mut_refs)] |
87 | 87 | unsafe { |
88 | 88 | if cfg!(feature="windows-syscall-use-linked") { |
89 | 89 | $fun($($args,)*) as NTSTATUS |
@@ -134,7 +134,7 @@ macro_rules! syscall { |
134 | 134 | // Emits the actual syscall instruction |
135 | 135 | (@emit [$($register:expr)*] $($stack:expr)*) => {{ |
136 | 136 | let [arg1, arg2, arg3, arg4, mut status] = { |
137 | | - let mut data = MaybeUninit::<usize>::uninit_array::<5>(); |
| 137 | + let mut data = [const { MaybeUninit::<usize>::uninit() }; 5]; |
138 | 138 | let mut data_len: usize = 0; |
139 | 139 | // Initialize stack args if and only if they were used, thus |
140 | 140 | // avoiding unnecessary register allocations |
|
0 commit comments