From 614bfbe57761a230cc22f1ac49fd764110726b5b Mon Sep 17 00:00:00 2001 From: Jack Heizer Date: Thu, 14 Aug 2014 12:23:39 -0700 Subject: [PATCH] Add export_name to the attribute whitelist and a description in the rust manual --- src/doc/rust.md | 2 ++ src/librustc/lint/builtin.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/doc/rust.md b/src/doc/rust.md index f47b85b6388..147811b81a7 100644 --- a/src/doc/rust.md +++ b/src/doc/rust.md @@ -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. diff --git a/src/librustc/lint/builtin.rs b/src/librustc/lint/builtin.rs index f929860c686..654b3c733b8 100644 --- a/src/librustc/lint/builtin.rs +++ b/src/librustc/lint/builtin.rs @@ -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",