diff options
| author | Jakub Bukaj <jakub@jakub.cc> | 2014-11-18 00:23:53 +0100 |
|---|---|---|
| committer | Jakub Bukaj <jakub@jakub.cc> | 2014-11-18 00:23:53 +0100 |
| commit | 7137c2cc83526e1f74af472380e625fc7c552826 (patch) | |
| tree | cc7b9988bd93f775a5caa1be85c4bbf4eeb60662 /src/rustllvm/RustWrapper.cpp | |
| parent | fcf9fb61574a415653fa0c787058972312ce1235 (diff) | |
| parent | 46be8eb47ccd261ecb00ba25e0c24f28c8af75d7 (diff) | |
| download | rust-7137c2cc83526e1f74af472380e625fc7c552826.tar.gz rust-7137c2cc83526e1f74af472380e625fc7c552826.zip | |
rollup merge of #18910: aturon/borrow-traits
Following [the collections reform RFC](https://github.com/rust-lang/rfcs/pull/235), this PR: * Adds a new `borrow` module to libcore. The module contains traits for borrowing data (`BorrowFrom` and `BorrowFromMut`), generalized cloning (`ToOwned`), and a clone-on-write smartpointer (`Cow`). * Deprecates the `_equiv` family of methods on `HashMap` and `HashSet` by instead generalizing the "normal" methods like `get` and `remove` to use the new `std::borrow` infrastructure. * Generalizes `TreeMap`, `TreeSet`, `BTreeMap` and `BTreeSet` to use the new `std::borrow` infrastructure for lookups. [breaking-change]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
