syntax: parse inner attributes on impls.

Fixes #3614.
auto merge of #10628 : huonw/rust/3614, r=alexcrichton

Fixes #3614.