rust/src/liballoc
bors 1685c92986 Auto merge of #42727 - alexcrichton:allocators-new, r=eddyb
rustc: Implement the #[global_allocator] attribute

This PR is an implementation of [RFC 1974] which specifies a new method of
defining a global allocator for a program. This obsoletes the old
`#![allocator]` attribute and also removes support for it.

[RFC 1974]: https://github.com/rust-lang/rfcs/pull/1974

The new `#[global_allocator]` attribute solves many issues encountered with the
`#![allocator]` attribute such as composition and restrictions on the crate
graph itself. The compiler now has much more control over the ABI of the
allocator and how it's implemented, allowing much more freedom in terms of how
this feature is implemented.

cc #27389
2017-07-06 00:16:16 +00:00
..
benches Auto merge of #43010 - stjepang:stabilize-sort-unstable, r=alexcrichton 2017-07-02 23:54:32 +00:00
btree rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
tests Rollup merge of #43041 - andersk:dedup_by, r=alexcrichton 2017-07-04 07:41:42 -06:00
Cargo.toml Merge crate `collections` into `alloc` 2017-06-13 23:37:34 -07:00
allocator.rs rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
arc.rs rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
binary_heap.rs Merge crate `collections` into `alloc` 2017-06-13 23:37:34 -07:00
borrow.rs Merge crate `collections` into `alloc` 2017-06-13 23:37:34 -07:00
boxed.rs rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
boxed_test.rs Direct conversions between slices and boxes. 2017-02-06 18:53:13 -05:00
fmt.rs Rollup merge of #42832 - rthomas:doc-fmt, r=steveklabnik 2017-06-29 08:40:03 +00:00
heap.rs rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
lib.rs rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
linked_list.rs Merge crate `collections` into `alloc` 2017-06-13 23:37:34 -07:00
macros.rs Merge crate `collections` into `alloc` 2017-06-13 23:37:34 -07:00
range.rs Revert "Stabilize RangeArgument" 2017-06-30 08:34:53 -10:00
raw_vec.rs rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
rc.rs rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
slice.rs Auto merge of #43010 - stjepang:stabilize-sort-unstable, r=alexcrichton 2017-07-02 23:54:32 +00:00
str.rs Merge crate `collections` into `alloc` 2017-06-13 23:37:34 -07:00
string.rs Rollup merge of #42227 - ollie27:into_to_from, r=aturon 2017-07-04 07:41:33 -06:00
vec.rs Auto merge of #43050 - stjepang:doc-vec-fix-parens, r=frewsxcv 2017-07-05 02:04:07 +00:00
vec_deque.rs Revert "Stabilize RangeArgument" 2017-06-30 08:34:53 -10:00