about summary refs log tree commit diff
path: root/tests/codegen-llvm/global-allocator-attributes.rs
AgeCommit message (Collapse)AuthorLines
2025-09-23Add attributes for #[global_allocator] functionsNikita Popov-0/+41
Emit `#[rustc_allocator]` etc. attributes on the functions generated by the `#[global_allocator]` macro, which will emit LLVM attributes like `"alloc-family"`. If the module with the global allocator participates in LTO, this ensures that the attributes typically emitted on the allocator declarations are not lost if the definition is imported.