about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/compiler_builtins.rs
diff options
context:
space:
mode:
authorLeSeulArtichaut <leseulartichaut@gmail.com>2021-06-14 23:40:09 +0200
committerLeSeulArtichaut <leseulartichaut@gmail.com>2021-06-14 23:40:09 +0200
commite3ca81fd5a33406078db0fc7f5f1c47ccfcd58b8 (patch)
treeef305e0bbcf029d6a67b38be2fe77d0756ad29a1 /compiler/rustc_codegen_cranelift/src/compiler_builtins.rs
parenta216131c3566858b78f45ccc0c36b5578f5c5155 (diff)
downloadrust-e3ca81fd5a33406078db0fc7f5f1c47ccfcd58b8.tar.gz
rust-e3ca81fd5a33406078db0fc7f5f1c47ccfcd58b8.zip
Use the now available implementation of `IntoIterator` for arrays
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/compiler_builtins.rs')
-rw-r--r--compiler/rustc_codegen_cranelift/src/compiler_builtins.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/compiler_builtins.rs b/compiler/rustc_codegen_cranelift/src/compiler_builtins.rs
index 177f850afb3..100c3b43160 100644
--- a/compiler/rustc_codegen_cranelift/src/compiler_builtins.rs
+++ b/compiler/rustc_codegen_cranelift/src/compiler_builtins.rs
@@ -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);
         }
     }