Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 695dee0

Browse files
committedJul 5, 2017
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#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 rust-lang#27389
1 parent 4c225c4 commit 695dee0

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

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
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.