]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #34951 - tomgarcia:covariant-vec, r=brson
authorbors <bors@rust-lang.org>
Thu, 28 Jul 2016 12:24:31 +0000 (05:24 -0700)
committerGitHub <noreply@github.com>
Thu, 28 Jul 2016 12:24:31 +0000 (05:24 -0700)
Make vec::Drain and binary_heap::Drain covariant

I removed all mutable pointers/references, and added covariance tests similar to the ones in #32635. It builds and passes the tests, but I noticed that there weren't any tests of Drain's behaviour (at least not in libcollectionstest), so I'm not sure if my changes accidently broke Drain's behaviour. Should I add some tests for that (and if so, what should the tests include)?

1  2 
src/libcollections/vec.rs

Simple merge