about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-05-27 20:35:25 +0000
committerbors <bors@rust-lang.org>2017-05-27 20:35:25 +0000
commit28fd1e519a3807c632d58d01e73b4948000639ba (patch)
tree2b280cbdbd9967997780bc73dfdaa84e6a1968f5 /src/rustllvm/RustWrapper.cpp
parent9337ad5baec6e63ac6231193b2c0a4d810198b1d (diff)
parentdec23d41a607b78c590ab9672815ff53c1e282a7 (diff)
downloadrust-28fd1e519a3807c632d58d01e73b4948000639ba.tar.gz
rust-28fd1e519a3807c632d58d01e73b4948000639ba.zip
Auto merge of #42137 - nical:doc-clone, r=BurntSushi
Update to Rc and Arc documentation to favor the Rc::clone(&ptr) syntax.

This is a followup of the discussion in https://github.com/rust-lang/rfcs/pull/1954.

The solution chosen by the core team to address the problem tackled by the [the RFC](https://github.com/rust-lang/rfcs/pull/1954) was to make the function call syntax Rc::clone(&foo) the idiomatic way to clone a reference counted pointer (over the method call syntax foo.clone()).
This change updates the documentation of Rc, Arc and their respective Weak pointers to reflect this decision and bring more exposure to the existence of the function call syntax.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions