Add export_name to the attribute whitelist and a description in the rust manual
This commit is contained in:
parent
404978ea72
commit
614bfbe577
2 changed files with 3 additions and 0 deletions
|
|
@ -1928,6 +1928,8 @@ interpreted:
|
|||
|
||||
### Miscellaneous attributes
|
||||
|
||||
- `export_name` - on statics and functions, this determines the name of the
|
||||
exported symbol.
|
||||
- `link_section` - on statics and functions, this specifies the section of the
|
||||
object file that this item's contents will be placed into.
|
||||
- `macro_export` - export a macro for cross-crate usage.
|
||||
|
|
|
|||
|
|
@ -568,6 +568,7 @@ impl LintPass for UnusedAttribute {
|
|||
// FIXME: #14406 these are processed in trans, which happens after the
|
||||
// lint pass
|
||||
"cold",
|
||||
"export_name",
|
||||
"inline",
|
||||
"link",
|
||||
"link_name",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue