Use the now available implementation of IntoIterator for arrays

This commit is contained in:
LeSeulArtichaut 2021-06-14 23:40:09 +02:00
parent fa7545e49b
commit 8923e42a05

View File

@ -7,7 +7,7 @@ macro builtin_functions($register:ident; $(fn $name:ident($($arg_name:ident: $ar
#[cfg(feature = "jit")]
pub(crate) fn $register(builder: &mut cranelift_jit::JITBuilder) {
for &(name, val) in &[$((stringify!($name), $name as *const u8)),*] {
for (name, val) in [$((stringify!($name), $name as *const u8)),*] {
builder.symbol(name, val);
}
}