Skip to content

Commit 1911d21

Browse files
committed
also extend global allocator comment
1 parent 6cd9b88 commit 1911d21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

library/alloc/src/alloc.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ mod tests;
1414

1515
extern "Rust" {
1616
// These are the magic symbols to call the global allocator. rustc generates
17-
// them from the `#[global_allocator]` attribute if there is one, or uses the
18-
// default implementations in libstd (`__rdl_alloc` etc in `src/libstd/alloc.rs`)
17+
// them to call `__rg_alloc` etc if there is a `#[global_allocator]` attribute
18+
// (the code expanding that attribute macro generates those functions), or to call
19+
// the default implementations in libstd (`__rdl_alloc` etc in `src/libstd/alloc.rs`)
1920
// otherwise.
2021
#[rustc_allocator]
2122
#[rustc_allocator_nounwind]

0 commit comments

Comments
 (0)