about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2023-03-23 20:16:14 -0400
committerBen Kimock <kimockb@gmail.com>2023-03-24 15:06:31 -0400
commitbadfb17d2fc9ff79a6064058c58dcea7526457f4 (patch)
tree4be22bebcda0cb4d9ab1bafa1188e79ab8d7a2a1
parente2163008763c326ec4003e07b8e6eef0c98f6204 (diff)
downloadrust-badfb17d2fc9ff79a6064058c58dcea7526457f4.tar.gz
rust-badfb17d2fc9ff79a6064058c58dcea7526457f4.zip
Add #[inline] to the Into for From impl
-rw-r--r--library/core/src/convert/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/convert/mod.rs b/library/core/src/convert/mod.rs
index 805354be089..8a8d4caf96f 100644
--- a/library/core/src/convert/mod.rs
+++ b/library/core/src/convert/mod.rs
@@ -722,6 +722,7 @@ where
     ///
     /// That is, this conversion is whatever the implementation of
     /// <code>[From]&lt;T&gt; for U</code> chooses to do.
+    #[inline]
     fn into(self) -> U {
         U::from(self)
     }