rust/src/liballoc
bors 1f4117f518 auto merge of #17110 : thestinger/rust/dst, r=cmr
The pointer in the slice must not be null, because enum representations
make that assumption. The `exchange_malloc` function returns a non-null
sentinel for the zero size case, and it must not be passed to the
`exchange_free` lang item.

Since the length is always equal to the true capacity, a branch on the
length is enough for most types. Slices of zero size types are
statically special cased to never attempt deallocation. This is the same
implementation as `Vec<T>`.

Closes #14395
2014-09-11 04:55:41 +00:00
..
arc.rs A few minor documentation fixes 2014-08-19 17:22:18 +12:00
boxed.rs Implement generalized object and type parameter bounds (Fixes #16462) 2014-08-27 21:46:52 -04:00
heap.rs auto merge of #17110 : thestinger/rust/dst, r=cmr 2014-09-11 04:55:41 +00:00
lib.rs Fixed misleading docs in liballoc 2014-08-28 14:57:16 -07:00
libc_heap.rs A few minor documentation fixes 2014-08-19 17:22:18 +12:00
rc.rs A few minor documentation fixes 2014-08-19 17:22:18 +12:00
util.rs libs: Fix miscellaneous fallout of librustrt 2014-06-06 23:00:01 -07:00