]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/convert/mod.rs
Auto merge of #100733 - scottmcm:inline-from-from-identity, r=m-ou-se
[rust.git] / library / core / src / convert / mod.rs
index 5bddfd1a413e70504a66a6d27c72ff182afdc53f..05637c166228f31e9fc980f7bc4d8c8a065794fb 100644 (file)
@@ -558,6 +558,7 @@ fn into(self) -> U {
 #[rustc_const_unstable(feature = "const_convert", issue = "88674")]
 impl<T> const From<T> for T {
     /// Returns the argument unchanged.
+    #[inline(always)]
     fn from(t: T) -> T {
         t
     }