]> git.lizzy.rs Git - rust.git/commit
Rewrite `Unique<T>` so that it is covariant in T, implies `NonZero` and ownership,
authorNiko Matsakis <niko@alum.mit.edu>
Thu, 12 Feb 2015 15:33:21 +0000 (10:33 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Wed, 18 Feb 2015 15:25:12 +0000 (10:25 -0500)
commit801bc48939e6df1678ad2934ce35d981a068f253
tree00b84d20e0d80944c2c77bc0d8ba201f857a3143
parent8c841f2a310ccad73059ed9f74232f14e8f680bb
Rewrite `Unique<T>` so that it is covariant in T, implies `NonZero` and ownership,
and also follows the API of `NonZero` a bit more closely. More to do
here I think (including perhaps a new name).
src/libcore/nonzero.rs
src/libcore/ptr.rs
src/libcoretest/ptr.rs