refactor `AttributeGate` and `rustc_attr!` to emit notes during feature checking
First commit changes the following:
- `AttributeGate ` from an enum with (four) tuple fields to (five) named fields
- adds a `notes` fields that is emitted as notes in the `PostExpansionVisitor` pass
- removes the `this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date` note if the feature gate is `rustc_attrs`.
- various phrasing changes and touchups
- and finally, the reason why I went down this path to begin with: tell people they can use the diagnostic namespace when they hit the rustc_on_unimplemented feature gate 🙈
Second commit removes unused machinery for deprecated attributes
|
||
|---|---|---|
| .. | ||
| cfg-rustdoc.rs | ||
| cfg-rustdoc.stderr | ||
| check-doc-alias-attr-location.rs | ||
| check-doc-alias-attr-location.stderr | ||
| check-doc-alias-attr.rs | ||
| check-doc-alias-attr.stderr | ||
| deny-invalid-doc-attrs.rs | ||
| deny-invalid-doc-attrs.stderr | ||
| doc-alias-crate-level.rs | ||
| doc-alias-crate-level.stderr | ||
| doc-alias-same-name.rs | ||
| doc-alias-same-name.stderr | ||
| doc-alias-use-item-list-stem.rs | ||
| doc-inline-extern-crate.rs | ||
| doc-inline-extern-crate.stderr | ||
| doc-primitive.rs | ||
| doc-primitive.stderr | ||
| doc-test-attr-pass.rs | ||
| doc-test-attr.rs | ||
| doc-test-attr.stderr | ||
| doc_keyword.rs | ||
| doc_keyword.stderr | ||
| duplicate_doc_alias.rs | ||
| duplicate_doc_alias.stderr | ||
| feature-gate-doc_primitive.rs | ||
| feature-gate-doc_primitive.stderr | ||
| hidden-doc-associated-item.rs | ||
| README.md | ||
| renamed-features-rustdoc_internals.rs | ||
| renamed-features-rustdoc_internals.stderr | ||
| unterminated-doc-comment.rs | ||
| unterminated-doc-comment.stderr | ||
This directory is for tests that have to do with rustdoc, but test the behavior of rustc. For example, rustc should not warn that an attribute rustdoc uses is unknown.