ruff/crates/ruff_source_file/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
..
lib.rs Add cell field to JSON output format (#7664) 2023-10-13 01:06:02 +00:00
line_index.rs Add cell field to JSON output format (#7664) 2023-10-13 01:06:02 +00:00
locator.rs Skip BOM when inserting start-of-file imports (#7622) 2023-09-23 19:36:50 +00:00
newlines.rs remove several uses of unsafe (#8600) 2023-11-28 09:50:03 -05:00