about summary refs log tree commit diff
path: root/library/stdarch/crates
diff options
context:
space:
mode:
Diffstat (limited to 'library/stdarch/crates')
-rw-r--r--library/stdarch/crates/intrinsic-test/src/main.rs6
-rw-r--r--library/stdarch/crates/stdarch-gen/src/main.rs24
-rw-r--r--library/stdarch/crates/stdarch-verify/src/lib.rs2
-rw-r--r--library/stdarch/crates/stdarch-verify/tests/mips.rs2
4 files changed, 17 insertions, 17 deletions
diff --git a/library/stdarch/crates/intrinsic-test/src/main.rs b/library/stdarch/crates/intrinsic-test/src/main.rs
index 2f567c981e0..00331e67c41 100644
--- a/library/stdarch/crates/intrinsic-test/src/main.rs
+++ b/library/stdarch/crates/intrinsic-test/src/main.rs
@@ -266,11 +266,11 @@ fn build_c(notices: &str, intrinsics: &Vec<Intrinsic>, compiler: Option<&str>, a
             let c_filename = format!(r#"c_programs/{}.cpp"#, i.name);
             let mut file = File::create(&c_filename).unwrap();
 
-            let c_code = generate_c_program(notices, &["arm_neon.h", "arm_acle.h"], &i, a32);
+            let c_code = generate_c_program(notices, &["arm_neon.h", "arm_acle.h"], i, a32);
             file.write_all(c_code.into_bytes().as_slice()).unwrap();
             match compiler {
                 None => true,
-                Some(compiler) => compile_c(&c_filename, &i, compiler, a32),
+                Some(compiler) => compile_c(&c_filename, i, compiler, a32),
             }
         })
         .find_any(|x| !x)
@@ -284,7 +284,7 @@ fn build_rust(notices: &str, intrinsics: &[Intrinsic], toolchain: Option<&str>,
         let rust_filename = format!(r#"{rust_dir}/main.rs"#);
         let mut file = File::create(&rust_filename).unwrap();
 
-        let c_code = generate_rust_program(notices, &i, a32);
+        let c_code = generate_rust_program(notices, i, a32);
         file.write_all(c_code.into_bytes().as_slice()).unwrap();
     });
 
diff --git a/library/stdarch/crates/stdarch-gen/src/main.rs b/library/stdarch/crates/stdarch-gen/src/main.rs
index e8479eaa2fb..91aa18257b8 100644
--- a/library/stdarch/crates/stdarch-gen/src/main.rs
+++ b/library/stdarch/crates/stdarch-gen/src/main.rs
@@ -1638,15 +1638,15 @@ fn gen_aarch64(
         Fntype::Normal => gen_test(
             &name,
             in_t,
-            &out_t,
+            out_t,
             current_tests,
             [type_len(in_t[0]), type_len(in_t[1]), type_len(in_t[2])],
             type_len(out_t),
             para_num,
             target.to_simd_test_attr_aarch64(),
         ),
-        Fntype::Load => gen_load_test(&name, in_t, &out_t, current_tests, type_len(out_t)),
-        Fntype::Store => gen_store_test(&name, in_t, &out_t, current_tests, type_len(in_t[1])),
+        Fntype::Load => gen_load_test(&name, in_t, out_t, current_tests, type_len(out_t)),
+        Fntype::Store => gen_store_test(&name, in_t, out_t, current_tests, type_len(in_t[1])),
     };
     (function, test)
 }
@@ -2524,7 +2524,7 @@ fn gen_arm(
 "#,
             target_feature_arm = target.to_target_feature_attr_arm(),
             target_feature_aarch64 = target.to_target_feature_attr_aarch64(),
-            assert_arm = expand_intrinsic(&current_arm, in_t[1]),
+            assert_arm = expand_intrinsic(current_arm, in_t[1]),
             assert_aarch64 = expand_intrinsic(&current_aarch64, in_t[1]),
         )
     } else {
@@ -2573,7 +2573,7 @@ fn gen_arm(
 {call}
 "#,
             function_doc = create_doc_string(current_comment, &name),
-            assert_arm = expand_intrinsic(&current_arm, in_t[1]),
+            assert_arm = expand_intrinsic(current_arm, in_t[1]),
             assert_aarch64 = expand_intrinsic(&current_aarch64, in_t[1]),
             target_feature = target.to_target_feature_attr_shared(),
         )
@@ -2582,15 +2582,15 @@ fn gen_arm(
         Fntype::Normal => gen_test(
             &name,
             in_t,
-            &out_t,
+            out_t,
             current_tests,
             [type_len(in_t[0]), type_len(in_t[1]), type_len(in_t[2])],
             type_len(out_t),
             para_num,
             target.to_simd_test_attr_shared(),
         ),
-        Fntype::Load => gen_load_test(&name, in_t, &out_t, current_tests, type_len(out_t)),
-        Fntype::Store => gen_store_test(&name, in_t, &out_t, current_tests, type_len(in_t[1])),
+        Fntype::Load => gen_load_test(&name, in_t, out_t, current_tests, type_len(out_t)),
+        Fntype::Store => gen_store_test(&name, in_t, out_t, current_tests, type_len(in_t[1])),
     };
     (function, test)
 }
@@ -3085,11 +3085,11 @@ fn get_call(
         } else if fn_format[1] == "outsigned" {
             fn_name.push_str(type_to_suffix(&type_to_signed(&String::from(out_t))));
         } else if fn_format[1] == "outsignednox" {
-            fn_name.push_str(&type_to_suffix(&type_to_sub_type(&type_to_signed(
+            fn_name.push_str(type_to_suffix(&type_to_sub_type(&type_to_signed(
                 &String::from(out_t),
             ))));
         } else if fn_format[1] == "in1signednox" {
-            fn_name.push_str(&type_to_suffix(&type_to_sub_type(&type_to_signed(
+            fn_name.push_str(type_to_suffix(&type_to_sub_type(&type_to_signed(
                 &String::from(in_t[1]),
             ))));
         } else if fn_format[1] == "outsigneddupnox" {
@@ -3451,7 +3451,7 @@ mod test {
                         &const_aarch64,
                         &constn,
                         &in_t,
-                        &out_t,
+                        out_t,
                         &current_tests,
                         suffix,
                         para_num,
@@ -3473,7 +3473,7 @@ mod test {
                         &const_aarch64,
                         &constn,
                         &in_t,
-                        &out_t,
+                        out_t,
                         &current_tests,
                         suffix,
                         para_num,
diff --git a/library/stdarch/crates/stdarch-verify/src/lib.rs b/library/stdarch/crates/stdarch-verify/src/lib.rs
index 3f9eb3bf9bf..1eb939abcdf 100644
--- a/library/stdarch/crates/stdarch-verify/src/lib.rs
+++ b/library/stdarch/crates/stdarch-verify/src/lib.rs
@@ -536,7 +536,7 @@ struct RustcArgsRequiredConst {
 
 impl syn::parse::Parse for RustcArgsRequiredConst {
     fn parse(input: syn::parse::ParseStream<'_>) -> syn::Result<Self> {
-        let list = syn::punctuated::Punctuated::<syn::LitInt, Token![,]>::parse_terminated(&input)?;
+        let list = syn::punctuated::Punctuated::<syn::LitInt, Token![,]>::parse_terminated(input)?;
         Ok(Self {
             args: list
                 .into_iter()
diff --git a/library/stdarch/crates/stdarch-verify/tests/mips.rs b/library/stdarch/crates/stdarch-verify/tests/mips.rs
index 365057b1daf..629ba0c11e4 100644
--- a/library/stdarch/crates/stdarch-verify/tests/mips.rs
+++ b/library/stdarch/crates/stdarch-verify/tests/mips.rs
@@ -163,7 +163,7 @@ impl std::convert::TryFrom<&'static str> for MsaIntrinsic {
             let mut arg_tys = Vec::new();
 
             let last_parentheses = line.find(')')?;
-            for arg in (&line[first_parentheses + 1..last_parentheses]).split(',') {
+            for arg in line[first_parentheses + 1..last_parentheses].split(',') {
                 let arg = arg.trim();
                 arg_tys.push(MsaTy::from(arg));
             }