ruff/crates/ruff_macros/src
Andrew Gallant f585e3e2dc
remove several uses of unsafe (#8600)
This PR removes several uses of `unsafe`. I generally limited myself to
low hanging fruit that I could see. There are still a few remaining uses
of `unsafe` that looked a bit more difficult to remove (if possible at
all). But this gets rid of a good chunk of them.

I put each `unsafe` removal into its own commit with a justification for
why I did it. So I would encourage reviewing this PR commit-by-commit.
That way, we can legislate them independently. It's no problem to drop a
commit if we feel the `unsafe` should stay in that case.
2023-11-28 09:50:03 -05: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 Remove repeated and erroneous scoped settings headers in docs (#8670) 2023-11-14 05:44:30 +00: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 Rename RuleGroup::Unspecified to Stable (#7991) 2023-10-16 14:53:27 -05:00
newtype_index.rs remove several uses of unsafe (#8600) 2023-11-28 09:50:03 -05:00
rule_code_prefix.rs Update rule selection to respect preview mode (#7195) 2023-09-11 12:28:39 -05: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