Skip to content

Commit c64a253

Browse files
authored
Merge pull request #367 from brson/global-allocator
Mention the global_allocator trait
2 parents e53d006 + 5911296 commit c64a253

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
@@ -185,6 +185,8 @@ information on macro scope.
185185

186186
- `export_name` - on statics and functions, this determines the name of the
187187
exported symbol.
188+
- `global_allocator` - when applied to a static item implementing the
189+
`GlobalAlloc` trait, sets the global allocator.
188190
- `link_section` - on statics and functions, this specifies the section of the
189191
object file that this item's contents will be placed into.
190192
- `no_mangle` - on any item, do not apply the standard name mangling. Set the

0 commit comments

Comments
 (0)