about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRyan Mehri <ryan.mehri1@gmail.com>2023-10-20 11:28:38 -0700
committerRyan Mehri <ryan.mehri1@gmail.com>2023-10-25 15:22:01 -0700
commit9d61e6a4e46899a00da5908cf6db34a7d2bebb28 (patch)
tree475ac119c8cb22ebca9900e447a0d3977a044516
parentde56d2d9b2c501985b5f30eb6506475bf312c0c0 (diff)
downloadrust-9d61e6a4e46899a00da5908cf6db34a7d2bebb28.tar.gz
rust-9d61e6a4e46899a00da5908cf6db34a7d2bebb28.zip
FileCheck inline_closure_borrows_arg
-rw-r--r--tests/mir-opt/inline/inline_closure_borrows_arg.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/mir-opt/inline/inline_closure_borrows_arg.rs b/tests/mir-opt/inline/inline_closure_borrows_arg.rs
index a5cc7d10365..1570ab057c7 100644
--- a/tests/mir-opt/inline/inline_closure_borrows_arg.rs
+++ b/tests/mir-opt/inline/inline_closure_borrows_arg.rs
@@ -1,4 +1,3 @@
-// skip-filecheck
 // compile-flags: -Z span_free_formats -Zunsound-mir-opts
 
 // Tests that MIR inliner can handle closure arguments,
@@ -14,5 +13,8 @@ fn foo<T: Copy>(_t: T, q: &i32) -> i32 {
         let variable = &*r;
         *variable
     };
+
+    // CHECK-LABEL: fn foo(
+    // CHECK: (inlined foo::<T>::{closure#0})
     x(q, q)
 }