diff options
| author | bors <bors@rust-lang.org> | 2013-06-16 09:54:59 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-06-16 09:54:59 -0700 |
| commit | ae23beb52f637b8c8640706ee8c6d2d4a5796bc8 (patch) | |
| tree | 86c72c3bb92054b0ba9aff59cbe9c0391eb88c99 /src/rt/rust_task.cpp | |
| parent | 900de0ffaded223c0ed75188226e499e332416be (diff) | |
| parent | bada191309d43d481d265bb1ff9c3a14e827babf (diff) | |
| download | rust-ae23beb52f637b8c8640706ee8c6d2d4a5796bc8.tar.gz rust-ae23beb52f637b8c8640706ee8c6d2d4a5796bc8.zip | |
auto merge of #7167 : nikomatsakis/rust/ref-bindings-explicit-copy-in-generics, r=brson
Two changes: 1. Make type parameters move by default, even if they have a Copy bound. After all, they could be bound to `~T` or `~[]`. Also, this is a necessary step towards removing `copy` keyword and replacing with clone. 2. Make it illegal to move from `*T`. This is dangerous in a "moves-by-default" scenario, because it's very easy to move when working with a `*T` pointer. Also, it requires zeroing memory, which we hope to do away with someday.
Diffstat (limited to 'src/rt/rust_task.cpp')
0 files changed, 0 insertions, 0 deletions
