rust/src/libcollections
Aaron Turon 004db80afe libcore: DST-ify AsSlice
This commit changes `AsSlice` to work on unsized types, and changes the
`impl` for `&[T]` to `[T]`. Aside from making the trait more general,
this also helps some ongoing work with method resolution changes.

This is a breaking change: code that uses generics bounded by `AsSlice`
will have to change. In particular, such code previously often took
arguments of type `V` where `V: AsSlice<T>` by value. These should now
be taken by reference:

```rust
fn foo<Sized? V: AsSlice<T>>(v: &V) { .. }
```

A few std lib functions have been changed accordingly.

[breaking-change]
2014-11-20 00:05:00 -08:00
..
2014-11-17 22:41:33 +13:00
2014-11-17 11:26:48 -08:00
2014-11-08 15:02:09 +01:00
2014-11-17 22:41:33 +13:00
2014-11-17 07:35:51 -08:00
2014-11-17 07:35:51 -08:00
2014-11-20 00:05:00 -08:00
2014-11-08 15:02:09 +01:00
2014-11-20 00:05:00 -08:00