ruff/crates/ruff_python_literal/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
..
cformat.rs Remove unused runtime string formatting logic (#6624) 2023-08-16 17:38:33 +00:00
char.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
escape.rs remove several uses of unsafe (#8600) 2023-11-28 09:50:03 -05:00
float.rs Implement our own small-integer optimization (#7584) 2023-09-25 15:13:21 +00:00
format.rs Avoid parsing other parts of a format specification if replacements are present (#6858) 2023-08-25 17:42:57 +00:00
lib.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00