diff --git a/library/core/src/convert/mod.rs b/library/core/src/convert/mod.rs index f5ea5f5ba50..e3ecf1449fe 100644 --- a/library/core/src/convert/mod.rs +++ b/library/core/src/convert/mod.rs @@ -487,6 +487,7 @@ impl const AsRef for &T where T: ~const AsRef, { + #[inline] fn as_ref(&self) -> &U { >::as_ref(*self) } @@ -499,6 +500,7 @@ impl const AsRef for &mut T where T: ~const AsRef, { + #[inline] fn as_ref(&self) -> &U { >::as_ref(*self) } @@ -519,6 +521,7 @@ impl const AsMut for &mut T where T: ~const AsMut, { + #[inline] fn as_mut(&mut self) -> &mut U { (*self).as_mut() }