ruff/crates/ruff_macros/src
Brent Westbrook e4ac9e9041
Replace two more uses of unsafe with const `Option::unwrap` (#20584)
I guess I missed these in #20007, but I found them today while grepping
for something else. `Option::unwrap` has been const since 1.83, so we
can use it here and avoid some unsafe code.
2025-09-25 15:35:13 -04:00
..
cache_key.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
combine.rs [ty] Support LSP client settings (#19614) 2025-08-06 18:37:21 +05:30
combine_options.rs Use `#[expect(lint)]` over `#[allow(lint)]` where possible (#17822) 2025-05-03 21:20:31 +02:00
config.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
derive_message_formats.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
env_vars.rs [ty] Merge `ty_macros` into `ruff_macros` (#19229) 2025-07-09 11:28:21 +00:00
kebab_case.rs Inline `DiagnosticKind` into other diagnostic types (#18074) 2025-05-15 10:27:21 -04:00
lib.rs [ty] Support LSP client settings (#19614) 2025-08-06 18:37:21 +05:30
map_codes.rs Don't cache files with diagnostics (#19869) 2025-08-12 15:28:44 -04:00
newtype_index.rs Replace two more uses of unsafe with const `Option::unwrap` (#20584) 2025-09-25 15:35:13 -04:00
rule_code_prefix.rs Upgrade to Rust 1.82 (#13816) 2024-10-19 16:05:50 +02:00
rule_namespace.rs Apply fix availability and applicability when adding to `DiagnosticGuard` and remove `NoqaCode::rule` (#18834) 2025-06-24 10:08:36 -04:00
rust_doc.rs [ty] Allow overriding rules for specific files (#18648) 2025-06-15 14:27:39 +01:00
violation_metadata.rs Add a `ViolationMetadata::rule` method (#18234) 2025-05-28 09:27:09 -04:00