doc: document the #[deriving] attribute.

Closes #4916.
auto merge of #6448 : huonw/rust/deriving-doc, r=Aatch

Closes #4916.