ruff/crates/ruff_macros/src
Zanie Blue e0bc08a758 Add rule removal infrastructure (#9691)
Similar to https://github.com/astral-sh/ruff/pull/9689 — retains removed
rules for better error messages and documentation but removed rules
_cannot_ be used in any context.

Removes PLR1706 as a useful test case and something we want to
accomplish in #9680 anyway. The rule was in preview so we do not need to
deprecate it first.

Closes https://github.com/astral-sh/ruff/issues/9007

## Test plan

<img width="1110" alt="Rules table"
src="ac9fa682-623c-44aa-8e51-d8ab0d308355">

<img width="1110" alt="Rule page"
src="05850b2d-7ca5-49bb-8df8-bb931bab25cd">
2024-02-01 13:35:02 -06:00
..
cache_key.rs Add #[automatically_derived] to derived impls (#8080) 2023-10-20 00:12:27 +00:00
combine_options.rs Add #[automatically_derived] to derived impls (#8080) 2023-10-20 00:12:27 +00:00
config.rs Add deprecation message for top-level lint settings (#9582) 2024-02-01 13:35:02 -06:00
derive_message_formats.rs Format let-else with rustfmt nightly (#5461) 2023-07-03 02:13:35 +00:00
lib.rs Rename ConfigurationOptions derive macro to OptionsMetadata 2023-09-27 09:04:26 +02:00
map_codes.rs Add rule removal infrastructure (#9691) 2024-02-01 13:35:02 -06:00
newtype_index.rs remove several uses of unsafe (#8600) 2023-11-28 09:50:03 -05:00
rule_code_prefix.rs Add internal hidden rules for testing (#9747) 2024-02-01 08:44:51 -06:00
rule_namespace.rs Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
violation.rs Add #[automatically_derived] to derived impls (#8080) 2023-10-20 00:12:27 +00:00