]> git.lizzy.rs Git - rust.git/commit
std: Refactor liballoc out of lib{std,sync}
authorAlex Crichton <alex@alexcrichton.com>
Tue, 13 May 2014 23:10:05 +0000 (16:10 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 18 May 2014 04:52:23 +0000 (21:52 -0700)
commit639759b7f46b2ea7fd93cbfdb6fa39ab24f8774f
treec6c817beed1f623f9d933326c75e0a45e6f196c9
parent3da5a5cd18dc2a2177160772725946c3b4512f7c
std: Refactor liballoc out of lib{std,sync}

This commit is part of the libstd facade RFC, issue #13851. This creates a new
library, liballoc, which is intended to be the core allocation library for all
of Rust. It is pinned on the basic assumption that an allocation failure is an
abort or failure.

This module has inherited the heap/libc_heap modules from std::rt, the owned/rc
modules from std, and the arc module from libsync. These three pointers are
currently the three most core pointer implementations in Rust.

The UnsafeArc type in std::sync should be considered deprecated and replaced by
Arc<Unsafe<T>>. This commit does not currently migrate to this type, but future
commits will continue this refactoring.
21 files changed:
mk/crates.mk
src/liballoc/arc.rs [new file with mode: 0644]
src/liballoc/heap.rs [new file with mode: 0644]
src/liballoc/lib.rs [new file with mode: 0644]
src/liballoc/libc_heap.rs [new file with mode: 0644]
src/liballoc/owned.rs [new file with mode: 0644]
src/liballoc/rc.rs [new file with mode: 0644]
src/liballoc/util.rs [new file with mode: 0644]
src/libstd/lib.rs
src/libstd/owned.rs [deleted file]
src/libstd/rc.rs [deleted file]
src/libstd/rt/heap.rs [deleted file]
src/libstd/rt/libc_heap.rs [deleted file]
src/libstd/rt/local_heap.rs
src/libstd/rt/mod.rs
src/libstd/rt/util.rs
src/libsync/arc.rs [deleted file]
src/libsync/lib.rs
src/libsync/lock.rs
src/libsync/raw.rs
src/test/compile-fail/no_send-rc.rs