diff options
| author | bors <bors@rust-lang.org> | 2020-05-19 08:08:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-05-19 08:08:48 +0000 |
| commit | 914adf04af1c1a984707f778da3d04590c03d144 (patch) | |
| tree | cf43672b28ea604bd6b54ca7712e0001b17c5e2c /src/test/codegen/align-struct.rs | |
| parent | 5943351d0eb878c1cb5af42b9e85e101d8c58ed7 (diff) | |
| parent | 22efd959109b9a231edbc81a8bc818eaa5763e78 (diff) | |
| download | rust-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/test/codegen/align-struct.rs')
0 files changed, 0 insertions, 0 deletions
