diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-10-29 15:26:29 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-10-29 18:48:30 -0700 |
| commit | 8e9f8f924cda8193ce1416c45cdcfce35fa6b8d1 (patch) | |
| tree | 40ec9f2a5a002ed52f03e74b1c316e250c316172 /src/rustllvm/RustWrapper.cpp | |
| parent | dd7113609c17cc31fee4b54d954e71e01af3bcc9 (diff) | |
| download | rust-8e9f8f924cda8193ce1416c45cdcfce35fa6b8d1.tar.gz rust-8e9f8f924cda8193ce1416c45cdcfce35fa6b8d1.zip | |
collections: impl Deref for Vec/String
This commit adds the following impls:
impl<T> Deref<[T]> for Vec<T>
impl<T> DerefMut<[T]> for Vec<T>
impl Deref<str> for String
This commit also removes all duplicated inherent methods from vectors and
strings as implementations will now silently call through to the slice
implementation. Some breakage occurred at std and beneath due to inherent
methods removed in favor of those in the slice traits and std doesn't use its
own prelude,
cc #18424
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
