about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-05-19 08:08:48 +0000
committerbors <bors@rust-lang.org>2020-05-19 08:08:48 +0000
commit914adf04af1c1a984707f778da3d04590c03d144 (patch)
treecf43672b28ea604bd6b54ca7712e0001b17c5e2c /src/rustllvm/RustWrapper.cpp
parent5943351d0eb878c1cb5af42b9e85e101d8c58ed7 (diff)
parent22efd959109b9a231edbc81a8bc818eaa5763e78 (diff)
downloadrust-914adf04af1c1a984707f778da3d04590c03d144.tar.gz
rust-914adf04af1c1a984707f778da3d04590c03d144.zip
Auto merge of #71447 - cuviper:unsized_cow, r=dtolnay
impl From<Cow> for Box, Rc, and Arc

These forward `Borrowed`/`Owned` values to existing `From` impls.

- `Box<T>` is a fundamental type, so it would be a breaking change to add a blanket impl. Therefore, `From<Cow>` is only implemented for `[T]`, `str`, `CStr`, `OsStr`, and `Path`.
- For `Rc<T>` and `Arc<T>`, `From<Cow>` is implemented for everything that implements `From` the borrowed and owned types separately.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions