File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -2803,7 +2803,7 @@ pub struct Macro {
2803
2803
2804
2804
impl Clean < Item > for doctree:: Macro {
2805
2805
fn clean ( & self , cx : & DocContext ) -> Item {
2806
- let name = format ! ( "{}!" , self . name. clean( cx) ) ;
2806
+ let name = self . name . clean ( cx) ;
2807
2807
Item {
2808
2808
name : Some ( name. clone ( ) ) ,
2809
2809
attrs : self . attrs . clean ( cx) ,
@@ -2814,8 +2814,10 @@ impl Clean<Item> for doctree::Macro {
2814
2814
def_id : cx. map . local_def_id ( self . id ) ,
2815
2815
inner : MacroItem ( Macro {
2816
2816
source : format ! ( "macro_rules! {} {{\n {}}}" ,
2817
- name. trim_right_matches( '!' ) , self . matchers. iter( ) . map( |span|
2818
- format!( " {} => {{ ... }};\n " , span. to_src( cx) ) ) . collect:: <String >( ) ) ,
2817
+ name,
2818
+ self . matchers. iter( ) . map( |span| {
2819
+ format!( " {} => {{ ... }};\n " , span. to_src( cx) )
2820
+ } ) . collect:: <String >( ) ) ,
2819
2821
imported_from : self . imported_from . clean ( cx) ,
2820
2822
} ) ,
2821
2823
}
Original file line number Diff line number Diff line change 12
12
// ignore-cross-compile
13
13
// build-aux-docs
14
14
15
- // @has issue_26606_macro/macro.make_item! .html
15
+ // @has issue_26606_macro/macro.make_item.html
16
16
#[ macro_use]
17
17
extern crate issue_26606_macro;
18
18
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- // @has macros/macro.my_macro! .html //pre 'macro_rules! my_macro {'
11
+ // @has macros/macro.my_macro.html //pre 'macro_rules! my_macro {'
12
12
// @has - //pre '() => { ... };'
13
13
// @has - //pre '($a:tt) => { ... };'
14
14
// @has - //pre '($e:expr) => { ... };'
You can’t perform that action at this time.
0 commit comments