Skip to content

Commit 9b3f5e1

Browse files
committed
FileCheck dont_ice_on_generic_rust_call
1 parent 2f9aa7d commit 9b3f5e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/mir-opt/inline/dont_ice_on_generic_rust_call.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// skip-filecheck
21
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
32
// compile-flags: -Zmir-enable-passes=+Inline --crate-type=lib
43

@@ -8,5 +7,7 @@ use std::marker::Tuple;
87

98
// EMIT_MIR dont_ice_on_generic_rust_call.call.Inline.diff
109
pub fn call<I: Tuple>(mut mock: Box<dyn FnMut<I, Output = ()>>, input: I) {
10+
// CHECK-LABEL: fn call(
11+
// CHECK-NOT: (inlined <Box<dyn FnMut<I, Output = ()>> as FnMut<I>>::call_mut)
1112
mock.call_mut(input)
1213
}

0 commit comments

Comments
 (0)