diff options
| author | Ralf Jung <post@ralfj.de> | 2020-10-09 11:31:54 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2020-10-09 11:36:20 +0200 |
| commit | 1911d2186683e4b9818ea16225b4f909c6e2b070 (patch) | |
| tree | 027549a80c0dc578edbb5906469c8be1febd4731 | |
| parent | 6cd9b88a2559c1c8276275ab7a278827f949bfdd (diff) | |
| download | rust-1911d2186683e4b9818ea16225b4f909c6e2b070.tar.gz rust-1911d2186683e4b9818ea16225b4f909c6e2b070.zip | |
also extend global allocator comment
| -rw-r--r-- | library/alloc/src/alloc.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/library/alloc/src/alloc.rs b/library/alloc/src/alloc.rs index f40bc2c96cf..82c9e4482d5 100644 --- a/library/alloc/src/alloc.rs +++ b/library/alloc/src/alloc.rs @@ -14,8 +14,9 @@ mod tests; extern "Rust" { // These are the magic symbols to call the global allocator. rustc generates - // them from the `#[global_allocator]` attribute if there is one, or uses the - // default implementations in libstd (`__rdl_alloc` etc in `src/libstd/alloc.rs`) + // them to call `__rg_alloc` etc if there is a `#[global_allocator]` attribute + // (the code expanding that attribute macro generates those functions), or to call + // the default implementations in libstd (`__rdl_alloc` etc in `src/libstd/alloc.rs`) // otherwise. #[rustc_allocator] #[rustc_allocator_nounwind] |
