about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-05-14 20:30:43 -0400
committerSteve Klabnik <steve@steveklabnik.com>2015-05-14 20:30:43 -0400
commit609b4a117ca2f774fd634c40c637c4e3cc84ebe5 (patch)
treed9e65d554dea1c02c8d9c39cf0191ac8cfe6e185 /src
parentdd60abc6977861f1318e7e569930407e041b022d (diff)
parent4bdeb311246406b9acb11da03be1981f715abdeb (diff)
downloadrust-609b4a117ca2f774fd634c40c637c4e3cc84ebe5.tar.gz
rust-609b4a117ca2f774fd634c40c637c4e3cc84ebe5.zip
Rollup merge of #25412 - koute:master, r=alexcrichton
Every time I profile my code I find something new to add #[inline] to. (:
Diffstat (limited to 'src')
-rw-r--r--src/libcollections/str.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs
index baef6ba6f01..198627ad2fc 100644
--- a/src/libcollections/str.rs
+++ b/src/libcollections/str.rs
@@ -396,6 +396,7 @@ macro_rules! utf8_acc_cont_byte {
 
 #[stable(feature = "rust1", since = "1.0.0")]
 impl Borrow<str> for String {
+    #[inline]
     fn borrow(&self) -> &str { &self[..] }
 }