We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f63519 commit 5911296Copy full SHA for 5911296
src/attributes.md
@@ -161,6 +161,8 @@ information on macro scope.
161
162
- `export_name` - on statics and functions, this determines the name of the
163
exported symbol.
164
+- `global_allocator` - when applied to a static item implementing the
165
+ `GlobalAlloc` trait, sets the global allocator.
166
- `link_section` - on statics and functions, this specifies the section of the
167
object file that this item's contents will be placed into.
168
- `no_mangle` - on any item, do not apply the standard name mangling. Set the
0 commit comments