]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #34951 - tomgarcia:covariant-vec, r=brson
authorManish Goregaokar <manishsmail@gmail.com>
Thu, 28 Jul 2016 10:50:10 +0000 (16:20 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Thu, 28 Jul 2016 15:03:06 +0000 (20:33 +0530)
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