about summary refs log tree commit diff
path: root/src/test/ui/alloc-error/alloc-error-handler-bad-signature-2.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-17/+0
2022-10-31Rewrite implementation of `#[alloc_error_handler]`Amanieu d'Antras-2/+2
The new implementation doesn't use weak lang items and instead changes `#[alloc_error_handler]` to an attribute macro just like `#[global_allocator]`. The attribute will generate the `__rg_oom` function which is called by the compiler-generated `__rust_alloc_error_handler`. If no `__rg_oom` function is defined in any crate then the compiler shim will call `__rdl_oom` in the alloc crate which will simply panic. This also fixes link errors with `-C link-dead-code` with `default_alloc_error_handler`: `__rg_oom` was previously defined in the alloc crate and would attempt to reference the `oom` lang item, even if it didn't exist. This worked as long as `__rg_oom` was excluded from linking since it was not called. This is a prerequisite for the stabilization of `default_alloc_error_handler` (#102318).
2022-03-03Cleanup feature gates.Camille GILLOT-1/+1
2018-12-25Remove licensesMark Rousskov-10/+0
2018-08-23add #[panic_handler]; deprecate #[panic_implementation]Jorge Aparicio-2/+2
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+27