Add doc and examples for attributes allow/warn/deny/forbid.

Fix #7821.
auto merge of #7823 : pnkfelix/rust/issue7821-document-lint-attributes, r=graydon

r? anyone

Fix #7821.