Skip to content

Commit 5911296

Browse files
committed
Mention the global_allocator trait
1 parent 0f63519 commit 5911296

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/attributes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ information on macro scope.
161161

162162
- `export_name` - on statics and functions, this determines the name of the
163163
exported symbol.
164+
- `global_allocator` - when applied to a static item implementing the
165+
`GlobalAlloc` trait, sets the global allocator.
164166
- `link_section` - on statics and functions, this specifies the section of the
165167
object file that this item's contents will be placed into.
166168
- `no_mangle` - on any item, do not apply the standard name mangling. Set the

0 commit comments

Comments
 (0)