ruff/crates/ruff_python_formatter/src/comments
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
..
snapshots Split Constant to individual literal nodes (#8064) 2023-10-30 12:13:23 +05:30
debug.rs Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
format.rs Preserve trailing semicolon for Notebooks (#8590) 2023-11-10 21:53:35 +05:30
map.rs remove several uses of unsafe (#8600) 2023-11-28 09:50:03 -05:00
mod.rs Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
node_key.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
placement.rs Update string nodes for implicit concatenation (#7927) 2023-11-24 17:55:41 -06:00
visitor.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00