diff --git a/library/core/src/convert/mod.rs b/library/core/src/convert/mod.rs index 5bddfd1a413e7..05637c166228f 100644 --- a/library/core/src/convert/mod.rs +++ b/library/core/src/convert/mod.rs @@ -558,6 +558,7 @@ where #[rustc_const_unstable(feature = "const_convert", issue = "88674")] impl const From for T { /// Returns the argument unchanged. + #[inline(always)] fn from(t: T) -> T { t }