rust/compiler/rustc_feature/src
Matthias Krüger 25914399ab
Rollup merge of #141162 - mejrs:gated, r=fee1-dead
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
2025-06-12 20:03:35 +02:00
..
accepted.rs Rollup merge of #140766 - sayantn:stabilize-keylocker, r=traviscross,tgross35 2025-06-10 16:54:46 +02:00
builtin_attrs.rs Remove rustc_feature::Stability 2025-06-09 11:44:52 +02:00
lib.rs Remove rustc_feature::Stability 2025-06-09 11:44:52 +02:00
removed.rs Make since of removed features the version removed and fill pull 2025-06-09 17:17:49 +08:00
tests.rs rustc_feature: Avoid unsafe std::env::set_var() in UnstableFeatures tests 2025-01-08 11:37:19 +01:00
unstable.rs Rollup merge of #140766 - sayantn:stabilize-keylocker, r=traviscross,tgross35 2025-06-10 16:54:46 +02:00