Commit Graph

7 Commits

Author SHA1 Message Date
Bastien Orivel 47cb3c5bc2 Fix some typos 2017-08-11 00:16:18 +02:00
Simon Sapin 938552a228 Use checked NonZero constructor instead of explicit null check in btree 2017-07-22 20:38:40 +02:00
Simon Sapin a4edae95ad Add conversions from references to NonZero pointers, Unique, and Shared 2017-07-22 20:38:40 +02:00
Simon Sapin cbd2b6b484 Add Box::into_unique 2017-07-22 20:38:40 +02:00
Simon Sapin 0a08ad0443 Rename {NonZero,Shared,Unique}::new to new_unchecked 2017-07-22 20:38:16 +02:00
Alex Crichton 695dee063b 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/197

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-05 14:37:01 -07:00
Murarth eadda7665e Merge crate collections into alloc 2017-06-13 23:37:34 -07:00