Add inline attributes documentation.

Closes #7959.
auto merge of #11491 : wting/rust/wting_7959_document_inline_attributes, r=alexcrichton

Closes #7959.