Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FileCheck annotations to MIR-opt inlining tests #117029

Merged
merged 29 commits into from
Nov 1, 2023
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
62fe807
FileCheck asm_unwind
rmehri01 Oct 20, 2023
2d0a34b
FileCheck caller_with_trivial_bound
rmehri01 Oct 20, 2023
2f9aa7d
FileCheck cycle
rmehri01 Oct 20, 2023
9b3f5e1
FileCheck dont_ice_on_generic_rust_call
rmehri01 Oct 20, 2023
76faae9
FileCheck dyn_trait
rmehri01 Oct 20, 2023
f005d23
FileCheck exponential_runtime
rmehri01 Oct 20, 2023
22679cd
FileCheck inline_any_operand
rmehri01 Oct 20, 2023
de56d2d
FileCheck inline_box_fn
rmehri01 Oct 20, 2023
9d61e6a
FileCheck inline_closure_borrows_arg
rmehri01 Oct 20, 2023
5caee41
FileCheck inline_closure_captures
rmehri01 Oct 20, 2023
7ee05d2
FileCheck inline_closure
rmehri01 Oct 20, 2023
d8f33ef
FileCheck inline_diverging
rmehri01 Oct 21, 2023
20e7caa
FileCheck inline_coroutine
rmehri01 Oct 21, 2023
19c36a9
FileCheck inline_instruction_set
rmehri01 Oct 21, 2023
de82551
FileCheck inline_into_box_place
rmehri01 Oct 21, 2023
3202d4e
FileCheck inline_options
rmehri01 Oct 21, 2023
21a4c39
FileCheck inline_retag
rmehri01 Oct 21, 2023
2532566
FileCheck inline_specialization
rmehri01 Oct 21, 2023
f7acf17
FileCheck inline_trait_method_2
rmehri01 Oct 21, 2023
1b9cb5d
FileCheck inline_trait_method
rmehri01 Oct 21, 2023
773dc62
FileCheck inline_as_ref_as_mut
rmehri01 Oct 21, 2023
bb69597
FileCheck inline_scopes_parenting
rmehri01 Oct 21, 2023
5cf65eb
FileCheck issue_78442
rmehri01 Oct 21, 2023
6e047c0
FileCheck unchecked_shifts
rmehri01 Oct 21, 2023
3faf05b
FileCheck unsized_argument
rmehri01 Oct 21, 2023
6ab66c3
FileCheck unwrap_unchecked
rmehri01 Oct 21, 2023
1ec10ec
address review comments
rmehri01 Oct 22, 2023
2fcb4d9
change inline_retag to after.mir
rmehri01 Oct 31, 2023
5f75326
fix spans for inline_couroutine panic-abort
rmehri01 Nov 1, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
FileCheck inline_closure_captures
  • Loading branch information
rmehri01 committed Oct 25, 2023
commit 5caee416a5c53c997c35d2358cb61e2499a1e263
4 changes: 3 additions & 1 deletion tests/mir-opt/inline/inline_closure_captures.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// skip-filecheck
// compile-flags: -Z span_free_formats

// Tests that MIR inliner can handle closure captures.
@@ -10,5 +9,8 @@ fn main() {
// EMIT_MIR inline_closure_captures.foo.Inline.after.mir
fn foo<T: Copy>(t: T, q: i32) -> (i32, T) {
let x = |_q| (q, t);

// CHECK-LABEL: fn foo(
// CHECK: (inlined foo::<T>::{closure#0})
x(q)
}