Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
316c9a9
Add stack-protector test for Windows
wesleywiser Sep 19, 2023
dfadd17
Make TCP connect() handle EINTR correctly
darthunix Oct 5, 2023
786834d
Allow to run filecheck in mir-opt tests.
cjgillot Oct 16, 2023
5175e1c
Run filecheck on reference_prop.rs
cjgillot Oct 16, 2023
64103d7
FileCheck array_index_is_temporary.rs
cjgillot Oct 16, 2023
4c3dfb8
FileCheck asm_unwind_panic_abort.rs
cjgillot Oct 16, 2023
3e9fa2d
FileCheck basic_assignment.rs.
cjgillot Oct 16, 2023
cc03573
FileCheck box_expr.rs
cjgillot Oct 16, 2023
9db3aeb
Add README.
cjgillot Oct 16, 2023
8b500db
FileCheck combine_array_len.
cjgillot Oct 16, 2023
c65e373
FileCheck bool_compare.
cjgillot Oct 16, 2023
2f599af
FileCheck combine_clone_of_primitives.
cjgillot Oct 16, 2023
a293463
FileCheck intrinsic_asserts.
cjgillot Oct 16, 2023
75081b7
FileCheck duplicate_switch_targets.
cjgillot Oct 16, 2023
3417fe2
FileCheck combine_transmutes.
cjgillot Oct 16, 2023
98312ea
FileCheck casts.
cjgillot Oct 16, 2023
f77a3ef
FileCheck lower_intrinsics.
cjgillot Oct 16, 2023
d556de3
FileCheck lower_array_len.
cjgillot Oct 16, 2023
aad5093
FileCheck lower_slice_len.
cjgillot Oct 16, 2023
809c3cf
Mention skip in README.
cjgillot Oct 16, 2023
8fa8777
FileCheck issue_106141.
cjgillot Oct 16, 2023
eaabda7
FileCheck inline_shims.
cjgillot Oct 16, 2023
804aa6a
FileCheck transmute.
cjgillot Oct 16, 2023
c1c5a1d
Only check in a single place if a pass is enabled.
cjgillot Oct 18, 2023
0e17e5b
Rollup merge of #116037 - wesleywiser:stack_protector_test_windows, r…
fmease Oct 19, 2023
14da43e
Rollup merge of #116132 - darthunix:connect_poll, r=cuviper
fmease Oct 19, 2023
c3d0f11
Rollup merge of #116810 - cjgillot:mir-opt-check, r=oli-obk
fmease Oct 19, 2023
b6f4522
Rollup merge of #116896 - cjgillot:single-inline, r=oli-obk
fmease Oct 19, 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_shims.
  • Loading branch information
cjgillot committed Oct 18, 2023
commit eaabda7f314a59005a189242f04d38d7b04e9c26
5 changes: 4 additions & 1 deletion tests/mir-opt/inline/inline_shims.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
// skip-filecheck
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
#![crate_type = "lib"]

// EMIT_MIR inline_shims.clone.Inline.diff
pub fn clone<A, B>(f: fn(A, B)) -> fn(A, B) {
// CHECK-LABEL: fn clone(
// CHECK: (inlined <fn(A, B) as Clone>::clone - shim(fn(A, B)))
f.clone()
}

// EMIT_MIR inline_shims.drop.Inline.diff
pub fn drop<A, B>(a: *mut Vec<A>, b: *mut Option<B>) {
// CHECK-LABEL: fn drop(
// CHECK: (inlined std::ptr::drop_in_place::<Option<B>> - shim(Some(Option<B>)))
unsafe { std::ptr::drop_in_place(a) }
unsafe { std::ptr::drop_in_place(b) }
}