]> git.lizzy.rs Git - rust.git/commit
Auto merge of #32182 - bluss:string-from-is-str-owned, r=alexcrichton
authorbors <bors@rust-lang.org>
Sun, 13 Mar 2016 10:40:14 +0000 (03:40 -0700)
committerbors <bors@rust-lang.org>
Sun, 13 Mar 2016 10:40:14 +0000 (03:40 -0700)
commitdb6dd8e4fecd365157ecf51fc492c366359d4064
tree9333e8783f5e5f1a7b04700a431ee39175f7d4cd
parent06074ac004701bff42c625247c4764b2ae6fca6c
parentec39a76a3e8a96563845eca4eb77f3ba2a2090a9
Auto merge of #32182 - bluss:string-from-is-str-owned, r=alexcrichton

Call str::to_owned in String::from and uninline it

Call str::to_owned in String::from and uninline it

These methods were already effectively equal, but now one calls
the other, and neither is marked inline.
String::from does not need to be inlined, it can be without it just like
str::to_owned and String::clone are.

Fixes #32163