File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
- // skip-filecheck
2
1
// EMIT_MIR issue_58867_inline_as_ref_as_mut.a.Inline.after.mir
3
2
pub fn a < T > ( x : & mut [ T ] ) -> & mut [ T ] {
3
+ // CHECK-LABEL: fn a(
4
+ // CHECK: (inlined <[T] as AsMut<[T]>>::as_mut)
4
5
x. as_mut ( )
5
6
}
6
7
7
8
// EMIT_MIR issue_58867_inline_as_ref_as_mut.b.Inline.after.mir
8
9
pub fn b < T > ( x : & mut Box < T > ) -> & mut T {
10
+ // CHECK-LABEL: fn b(
11
+ // CHECK: (inlined <Box<T> as AsMut<T>>::as_mut)
9
12
x. as_mut ( )
10
13
}
11
14
12
15
// EMIT_MIR issue_58867_inline_as_ref_as_mut.c.Inline.after.mir
13
16
pub fn c < T > ( x : & [ T ] ) -> & [ T ] {
17
+ // CHECK-LABEL: fn c(
18
+ // CHECK: (inlined <[T] as AsRef<[T]>>::as_ref)
14
19
x. as_ref ( )
15
20
}
16
21
17
22
// EMIT_MIR issue_58867_inline_as_ref_as_mut.d.Inline.after.mir
18
23
pub fn d < T > ( x : & Box < T > ) -> & T {
24
+ // CHECK-LABEL: fn d(
25
+ // CHECK: (inlined <Box<T> as AsRef<T>>::as_ref)
19
26
x. as_ref ( )
20
27
}
21
28
You can’t perform that action at this time.
0 commit comments