Skip to content

Commit 406de8d

Browse files
committed
auto merge of #16500 : jackheizer/rust/export-name, r=alexcrichton
2 parents 1d12b6d + 614bfbe commit 406de8d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/doc/rust.md

+2
Original file line numberDiff line numberDiff line change
@@ -1928,6 +1928,8 @@ interpreted:
19281928

19291929
### Miscellaneous attributes
19301930

1931+
- `export_name` - on statics and functions, this determines the name of the
1932+
exported symbol.
19311933
- `link_section` - on statics and functions, this specifies the section of the
19321934
object file that this item's contents will be placed into.
19331935
- `macro_export` - export a macro for cross-crate usage.

src/librustc/lint/builtin.rs

+1
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ impl LintPass for UnusedAttribute {
568568
// FIXME: #14406 these are processed in trans, which happens after the
569569
// lint pass
570570
"cold",
571+
"export_name",
571572
"inline",
572573
"link",
573574
"link_name",

0 commit comments

Comments
 (0)