]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #21351 - eddyb:x-coerce--a-new-hope, r=nikomatsakis
authorbors <bors@rust-lang.org>
Fri, 30 Jan 2015 07:57:14 +0000 (07:57 +0000)
committerbors <bors@rust-lang.org>
Fri, 30 Jan 2015 07:57:14 +0000 (07:57 +0000)
Coercions will now attempt to autoderef as needed before reborrowing.
This includes overloaded `Deref`, e.g. `&Rc<T>` coerces to `&T`, and
`DerefMut`, e.g. `&mut Vec<T>` coerces to `&mut [T]` (in addition to `&[T]`).
Closes #21432.


Trivial merge