]> git.lizzy.rs Git - rust.git/commit
Make Vec.truncate() resilient against failure in Drop
authorKevin Ballard <kevin@sb.org>
Wed, 14 May 2014 21:57:27 +0000 (14:57 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 15 May 2014 20:50:29 +0000 (13:50 -0700)
commitd547de998d33e5b688533f4159ea997c940d9431
treed2c3c712bb14cda67dbecb92d7d25858fe3a3dab
parent4bcc4d76a049a50474764383889e4ede9388da9f
Make Vec.truncate() resilient against failure in Drop

If a vector element fails in Drop, Vec needs to make sure it doesn't try
to re-drop any elements it already dropped.
src/libstd/vec.rs