about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2017-04-01 19:33:45 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2017-04-12 17:21:15 -0700
commit7ec27ae63d762234ad768fb605bd40bbbc52c7a0 (patch)
tree932053cae56ba36ac896ffdfdf6a38e01b83f5b9 /src/test/run-pass/thinlto
parent44855a4cef3e83c76c386fdcf034447a8ee128e4 (diff)
downloadrust-7ec27ae63d762234ad768fb605bd40bbbc52c7a0.tar.gz
rust-7ec27ae63d762234ad768fb605bd40bbbc52c7a0.zip
Add ToOwned::clone_into (unstable as toowned_clone_into)
to_owned generalizes clone; this generalizes clone_from.  Use to_owned to
give it a default impl.  Customize the impl for [T], str, and T:Clone.

Use it in Cow::clone_from to reuse resources when cloning Owned into Owned.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions