File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -2746,7 +2746,8 @@ fn add_without_unwanted_attributes<'hir>(
27462746 attrs. push ( ( Cow :: Owned ( attr) , import_parent) ) ;
27472747 }
27482748 }
2749- hir:: Attribute :: Parsed ( ..) if is_inline => {
2749+ // FIXME: make sure to exclude `#[cfg_trace]` here when it is ported to the new parsers
2750+ hir:: Attribute :: Parsed ( ..) => {
27502751 attrs. push ( ( Cow :: Owned ( attr) , import_parent) ) ;
27512752 }
27522753 _ => { }
Original file line number Diff line number Diff line change 1+ // Tests that attributes are correctly copied onto a re-exported item.
2+ //@ edition:2021
3+ #![ crate_name = "re_export" ]
4+
5+ //@ has 're_export/fn.thingy2.html' '//pre[@class="rust item-decl"]' '#[no_mangle]'
6+ pub use thingymod:: thingy as thingy2;
7+
8+ mod thingymod {
9+ #[ no_mangle]
10+ pub fn thingy ( ) {
11+
12+ }
13+ }
You can’t perform that action at this time.
0 commit comments