summary refs log tree commit diff
path: root/src/test/compile-fail/feature-gate-alloc-error-handler.rs
AgeCommit message (Collapse)AuthorLines
2018-07-09Implement #[alloc_error_handler]Simon Sapin-0/+21
This to-be-stable attribute is equivalent to `#[lang = "oom"]`. It is required when using the alloc crate without the std crate. It is called by `handle_alloc_error`, which is in turned called by "infallible" allocations APIs such as `Vec::push`.