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
This commit is contained in:
Alex Crichton 2014-05-02 16:25:45 -07:00
parent 50fb77f8ba
commit 0b7954fa80

View File

@ -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(),