]> git.lizzy.rs Git - rust.git/commit
return the new usable size from reallocate_inplace
authorDaniel Micay <danielmicay@gmail.com>
Fri, 24 Oct 2014 23:58:26 +0000 (19:58 -0400)
committerDaniel Micay <danielmicay@gmail.com>
Sat, 25 Oct 2014 18:12:21 +0000 (14:12 -0400)
commita6426cb43dd24d0949755da57da85f3739fd9230
tree0fffafd9b8657171044833e4d4c636d4b6dd350c
parent2bc4d3ec23cc88155173729e60df54c8aa4949a6
return the new usable size from reallocate_inplace

The real size is also more useful than just a boolean, and the caller
can easily determine if the operation failed from the real size. In most
cases, the caller is only going to be growing the allocation so a branch
can be avoided.

[breaking-change]
src/liballoc/heap.rs