Skip to content

Custom global allocators (RFC 1398, RFC 1974) #287

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
1 of 2 tasks
matthewjasper opened this issue Apr 3, 2018 · 2 comments
Open
1 of 2 tasks

Custom global allocators (RFC 1398, RFC 1974) #287

matthewjasper opened this issue Apr 3, 2018 · 2 comments
Labels
RFC Stabilization Docs Documentation required for stabilizing a feature
Milestone

Comments

@matthewjasper
Copy link
Contributor

matthewjasper commented Apr 3, 2018

Custom allocators are mostly a library feature, but #[global_allocator] is not. See rust-lang/rust#27389 rust-lang/rust#32838, rust-lang/rust#42774.

  • Global allocator attribute - stub
  • Maybe add Alloc as a special trait
@matthewjasper matthewjasper added S-waiting-on-stabilization Waiting for a stabilization PR to be merged in the main Rust repository RFC Stabilization Docs Documentation required for stabilizing a feature labels Apr 3, 2018
@matthewjasper matthewjasper added this to the Rust 2018 milestone Apr 3, 2018
@alercah
Copy link
Contributor

alercah commented Apr 4, 2018

I think you have that backwards? #[global_allocator] is the language feature, right?

@Havvy
Copy link
Contributor

Havvy commented Aug 3, 2018

This feature is stable now. There's a stub of documentation in attributes.md.

@ehuss ehuss removed the S-waiting-on-stabilization Waiting for a stabilization PR to be merged in the main Rust repository label Dec 10, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
RFC Stabilization Docs Documentation required for stabilizing a feature
Projects
None yet
Development

No branches or pull requests

4 participants