diff options
| author | Ryan Mehri <ryan.mehri1@gmail.com> | 2023-10-20 11:31:05 -0700 |
|---|---|---|
| committer | Ryan Mehri <ryan.mehri1@gmail.com> | 2023-10-25 15:22:01 -0700 |
| commit | 7ee05d24b5103df74d93c267ab4e1d8060aec444 (patch) | |
| tree | a1ccc18ec4400b8f90e8e42ed0d34dd589124d97 | |
| parent | 5caee416a5c53c997c35d2358cb61e2499a1e263 (diff) | |
| download | rust-7ee05d24b5103df74d93c267ab4e1d8060aec444.tar.gz rust-7ee05d24b5103df74d93c267ab4e1d8060aec444.zip | |
FileCheck inline_closure
| -rw-r--r-- | tests/mir-opt/inline/inline_closure.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/mir-opt/inline/inline_closure.rs b/tests/mir-opt/inline/inline_closure.rs index bd4c84ff0ca..65f55d49a80 100644 --- a/tests/mir-opt/inline/inline_closure.rs +++ b/tests/mir-opt/inline/inline_closure.rs @@ -1,4 +1,3 @@ -// skip-filecheck // compile-flags: -Z span_free_formats // Tests that MIR inliner can handle closure arguments. (#45894) @@ -10,5 +9,8 @@ fn main() { // EMIT_MIR inline_closure.foo.Inline.after.mir fn foo<T: Copy>(_t: T, q: i32) -> i32 { let x = |_t, _q| _t; + + // CHECK-LABEL: fn foo( + // CHECK: (inlined foo::<T>::{closure#0}) x(q, q) } |
