diff --git a/library/core/src/convert/mod.rs b/library/core/src/convert/mod.rs index 0ceedf93633..c1ee0a66c56 100644 --- a/library/core/src/convert/mod.rs +++ b/library/core/src/convert/mod.rs @@ -486,6 +486,7 @@ impl const AsRef for &T where T: ~const AsRef, { + #[inline] fn as_ref(&self) -> &U { >::as_ref(*self) } @@ -498,6 +499,7 @@ impl const AsRef for &mut T where T: ~const AsRef, { + #[inline] fn as_ref(&self) -> &U { >::as_ref(*self) } @@ -518,6 +520,7 @@ impl const AsMut for &mut T where T: ~const AsMut, { + #[inline] fn as_mut(&mut self) -> &mut U { (*self).as_mut() }