syntax: allow macros to expand to items with attributes.

Fixes #4471.
auto merge of #9783 : huonw/rust/macro-items, r=bstrie

Fixes #4471.