mozilla/rust — pull request #4133 by brson (2012-12-07 02:25:59+00:00)
Title: Add an auto-slice-and-ref step to method lookup. Allows ~[T] to work wit...

r? @nikomatsakis

One thing this doesn't handle is borrowing `@mut [T]` to `&self` for impls on `&[T]`. I'm not sure how to deal with that, but it hopefully is not necessary to convert `BaseIter` to explicit self.

Incidentally, the reason `~mut [T]` was working is because that is not a vector type, it is a mutable unique box containing a fixed-length vector.