Skip to content

Commit 1685c92

Browse files
committedJul 6, 2017
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]: rust-lang/rfcs#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
2 parents 4d526e0 + 695dee0 commit 1685c92

File tree

115 files changed

+2828
-1169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+2828
-1169
lines changed
 

‎src/Cargo.lock

+18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# `allocator_internals`
2+
3+
This feature does not have a tracking issue, it is an unstable implementation
4+
detail of the `global_allocator` feature not intended for use outside the
5+
compiler.
6+
7+
------------------------

0 commit comments

Comments
 (0)
Please sign in to comment.