diff --git a/src/libcore/convert/mod.rs b/src/libcore/convert/mod.rs index 94f7ff5c1f7fe..45e8700d0a09d 100644 --- a/src/libcore/convert/mod.rs +++ b/src/libcore/convert/mod.rs @@ -559,6 +559,7 @@ impl Into for T where U: From, { + #[inline(always)] fn into(self) -> U { U::from(self) } @@ -567,6 +568,7 @@ where // From (and thus Into) is reflexive #[stable(feature = "rust1", since = "1.0.0")] impl From for T { + #[inline(always)] fn from(t: T) -> T { t }