about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2022-02-22 23:19:57 -0800
committerScott McMurray <scottmcm@users.noreply.github.com>2022-03-10 01:19:02 -0800
commit0d4a3f11e2170c3c35b1faf4bd0ba86c73a56221 (patch)
treeca0d79c783bcf511c7eb805eac73569492fb1192 /src/test/codegen
parentd7b282b886472413a26ef22c848eda0499d12cd3 (diff)
mir-opt: Replace clone on primitives with copy
We can't do it for everything, but it would be nice to at least stop making calls to clone methods in debug from things like derived-clones.
Diffstat (limited to 'src/test/codegen')
-rw-r--r--src/test/codegen/inline-hint.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/codegen/inline-hint.rs b/src/test/codegen/inline-hint.rs
index ad41badf381..d3ea1915a8b 100644
--- a/src/test/codegen/inline-hint.rs
+++ b/src/test/codegen/inline-hint.rs
@@ -6,7 +6,7 @@
 
 pub fn f() {
     let a = A;
-    let b = (0i32, 1i32, 2i32, 3i32);
+    let b = (0i32, 1i32, 2i32, 3 as *const i32);
     let c = || {};
 
     a(String::new(), String::new());
@@ -21,7 +21,7 @@ struct A(String, String);
 // CHECK-NOT:  inlinehint
 // CHECK-SAME: {{$}}
 
-// CHECK:      ; <(i32, i32, i32, i32) as core::clone::Clone>::clone
+// CHECK:      ; <(i32, i32, i32, *const i{{16|32|64}}) as core::clone::Clone>::clone
 // CHECK-NEXT: ; Function Attrs: inlinehint
 
 // CHECK:      ; inline_hint::f::{closure#0}