]> git.lizzy.rs Git - rust.git/commit
libcore: remove fails from slice.rs and remove duplicated length checking
authorKevin Butler <haqkrs@gmail.com>
Mon, 12 May 2014 18:44:19 +0000 (19:44 +0100)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 13 May 2014 02:52:29 +0000 (19:52 -0700)
commit826aeea007a99192c992688fb52ebc6530f715c7
treee54811a6841146d8d3e7dee4cd6a2672c71f6555
parent0a707140cb68cbe9aaa99b820fcd4660dc1ea466
libcore: remove fails from slice.rs and remove duplicated length checking

core::slice::raw::{shift_ptr,pop_ptr} now returns Option<*T> rather than
*T. They no longer fail on empty slices.

[breaking-change]
src/libcore/slice.rs