ruff/crates/ruff_formatter/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
..
format_element Allow parenthesized content exceed configured line width (#7490) 2023-09-20 08:39:25 +02:00
printer Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
arguments.rs remove several uses of unsafe (#8600) 2023-11-28 09:50:03 -05:00
buffer.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
builders.rs remove several uses of unsafe (#8600) 2023-11-28 09:50:03 -05:00
diagnostics.rs Fix Printer group modes (#6815) 2023-08-24 08:42:59 +02:00
format_element.rs remove several uses of unsafe (#8600) 2023-11-28 09:50:03 -05:00
format_extensions.rs Allow parenthesized content exceed configured line width (#7490) 2023-09-20 08:39:25 +02:00
formatter.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
group_id.rs Fix Printer group modes (#6815) 2023-08-24 08:42:59 +02:00
lib.rs Comments outside expression parentheses (#7873) 2023-10-19 09:24:11 +00:00
macros.rs remove several uses of unsafe (#8600) 2023-11-28 09:50:03 -05:00
prelude.rs Remove dependency on ruff_rowan (#2875) 2023-02-15 03:54:08 +00:00
source_code.rs Implement Ranged on more structs (#6921) 2023-08-27 19:03:08 +00:00