about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorJan Bujak <j@exia.io>2015-05-10 14:06:41 +0200
committerJan Bujak <j@exia.io>2015-05-10 14:06:41 +0200
commita168dbad15e108fce02a996fc8f72803460b7a55 (patch)
treefcf3dacaa77e0ffb773bd02fb11bee3d992b8d95 /src/libcore
parent0848d1c6a5908a9c3e6545e8a527027b164c7d05 (diff)
downloadrust-a168dbad15e108fce02a996fc8f72803460b7a55.tar.gz
rust-a168dbad15e108fce02a996fc8f72803460b7a55.zip
Add #[inline] to AsRef<str>::as_ref for String and str.
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/convert.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/convert.rs b/src/libcore/convert.rs
index d3de77a9241..da6ac6bd752 100644
--- a/src/libcore/convert.rs
+++ b/src/libcore/convert.rs
@@ -173,6 +173,7 @@ impl<T> AsMut<[T]> for [T] {
 
 #[stable(feature = "rust1", since = "1.0.0")]
 impl AsRef<str> for str {
+    #[inline]
     fn as_ref(&self) -> &str {
         self
     }