We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1368355 commit 69d9369Copy full SHA for 69d9369
tests/mir-opt/inline/inline_shims.rs
@@ -1,14 +1,17 @@
1
-// skip-filecheck
2
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
3
#![crate_type = "lib"]
4
5
// EMIT_MIR inline_shims.clone.Inline.diff
6
pub fn clone<A, B>(f: fn(A, B)) -> fn(A, B) {
+ // CHECK-LABEL: fn clone(
7
+ // CHECK: (inlined <fn(A, B) as Clone>::clone - shim(fn(A, B)))
8
f.clone()
9
}
10
11
// EMIT_MIR inline_shims.drop.Inline.diff
12
pub fn drop<A, B>(a: *mut Vec<A>, b: *mut Option<B>) {
13
+ // CHECK-LABEL: fn drop(
14
+ // CHECK: (inlined std::ptr::drop_in_place::<Option<B>> - shim(Some(Option<B>)))
15
unsafe { std::ptr::drop_in_place(a) }
16
unsafe { std::ptr::drop_in_place(b) }
17
0 commit comments