diff options
| author | Ryan Mehri <ryan.mehri1@gmail.com> | 2023-10-20 21:41:07 -0700 |
|---|---|---|
| committer | Ryan Mehri <ryan.mehri1@gmail.com> | 2023-10-25 15:25:38 -0700 |
| commit | 773dc6275666afc56d2ef442f07e2b3908c692d3 (patch) | |
| tree | dbfc2d61dab57edbdea707c9b1b78b348c396bb2 /tests/mir-opt/inline | |
| parent | 1b9cb5d59bb704c8a7920abcdbdef83f3273afba (diff) | |
| download | rust-773dc6275666afc56d2ef442f07e2b3908c692d3.tar.gz rust-773dc6275666afc56d2ef442f07e2b3908c692d3.zip | |
FileCheck inline_as_ref_as_mut
Diffstat (limited to 'tests/mir-opt/inline')
| -rw-r--r-- | tests/mir-opt/inline/issue_58867_inline_as_ref_as_mut.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/mir-opt/inline/issue_58867_inline_as_ref_as_mut.rs b/tests/mir-opt/inline/issue_58867_inline_as_ref_as_mut.rs index da779fed76f..4517c88d713 100644 --- a/tests/mir-opt/inline/issue_58867_inline_as_ref_as_mut.rs +++ b/tests/mir-opt/inline/issue_58867_inline_as_ref_as_mut.rs @@ -1,21 +1,28 @@ -// skip-filecheck // EMIT_MIR issue_58867_inline_as_ref_as_mut.a.Inline.after.mir pub fn a<T>(x: &mut [T]) -> &mut [T] { + // CHECK-LABEL: fn a( + // CHECK: (inlined <[T] as AsMut<[T]>>::as_mut) x.as_mut() } // EMIT_MIR issue_58867_inline_as_ref_as_mut.b.Inline.after.mir pub fn b<T>(x: &mut Box<T>) -> &mut T { + // CHECK-LABEL: fn b( + // CHECK: (inlined <Box<T> as AsMut<T>>::as_mut) x.as_mut() } // EMIT_MIR issue_58867_inline_as_ref_as_mut.c.Inline.after.mir pub fn c<T>(x: &[T]) -> &[T] { + // CHECK-LABEL: fn c( + // CHECK: (inlined <[T] as AsRef<[T]>>::as_ref) x.as_ref() } // EMIT_MIR issue_58867_inline_as_ref_as_mut.d.Inline.after.mir pub fn d<T>(x: &Box<T>) -> &T { + // CHECK-LABEL: fn d( + // CHECK: (inlined <Box<T> as AsRef<T>>::as_ref) x.as_ref() } |
