Rollup merge of #25412 - koute:master, r=alexcrichton

Every time I profile my code I find something new to add #[inline] to. (:
This commit is contained in:
Steve Klabnik 2015-05-14 20:30:43 -04:00
commit 609b4a117c

View File

@ -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[..] }
}