about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-05-02 16:25:45 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-05-03 02:09:29 -0700
commit0b7954fa809690037bcb80f44d3383329bce48ad (patch)
treeb4898e16d4e3ae064fdfaf2f6ddec35221b529d4
parent50fb77f8baed29bb1014893c8a1f3e66cbd8e3e1 (diff)
downloadrust-0b7954fa809690037bcb80f44d3383329bce48ad.tar.gz
rust-0b7954fa809690037bcb80f44d3383329bce48ad.zip
rustdoc: Put bangs on the names of macros
This makes them a little easier to search for and makes it clearer that they're
a macro and not an item to import.

Closes #13852
-rw-r--r--src/librustdoc/clean.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean.rs b/src/librustdoc/clean.rs
index 9fa1c57f991..1cb994e1662 100644
--- a/src/librustdoc/clean.rs
+++ b/src/librustdoc/clean.rs
@@ -1367,7 +1367,7 @@ pub struct Macro {
 impl Clean<Item> for doctree::Macro {
     fn clean(&self) -> Item {
         Item {
-            name: Some(self.name.clean()),
+            name: Some(self.name.clean() + "!"),
             attrs: self.attrs.clean(),
             source: self.where.clean(),
             visibility: ast::Public.clean(),