diff options
| author | bors <bors@rust-lang.org> | 2017-05-27 20:35:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-05-27 20:35:25 +0000 |
| commit | 28fd1e519a3807c632d58d01e73b4948000639ba (patch) | |
| tree | 2b280cbdbd9967997780bc73dfdaa84e6a1968f5 /src/rustllvm/RustWrapper.cpp | |
| parent | 9337ad5baec6e63ac6231193b2c0a4d810198b1d (diff) | |
| parent | dec23d41a607b78c590ab9672815ff53c1e282a7 (diff) | |
| download | rust-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
