We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fab31e commit af869c2Copy full SHA for af869c2
library/alloc/src/alloc.rs
@@ -23,6 +23,8 @@ extern "Rust" {
23
// (the code expanding that attribute macro generates those functions), or to call
24
// the default implementations in libstd (`__rdl_alloc` etc. in `library/std/src/alloc.rs`)
25
// otherwise.
26
+ // The rustc fork of LLVM also special-cases these function names to be able to optimize them
27
+ // like `malloc`, `realloc`, and `free`, respectively.
28
#[rustc_allocator]
29
#[rustc_allocator_nounwind]
30
fn __rust_alloc(size: usize, align: usize) -> *mut u8;
0 commit comments