ruff/crates/ruff_python_parser/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
..
lexer perf(parser): use memchr for lexing comments (#8193) 2023-10-27 02:07:43 +01:00
snapshots Update string nodes for implicit concatenation (#7927) 2023-11-24 17:55:41 -06:00
context.rs Remove Parse trait (#6235) 2023-08-01 18:35:03 +02:00
function.rs Move Ranged into ruff_text_size (#6919) 2023-08-27 14:12:51 -04:00
invalid.rs Reject more syntactically invalid Python programs (#8524) 2023-11-07 07:16:06 -05:00
lexer.rs Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
lib.rs Reject more syntactically invalid Python programs (#8524) 2023-11-07 07:16:06 -05:00
parser.rs Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
python.lalrpop Update string nodes for implicit concatenation (#7927) 2023-11-24 17:55:41 -06:00
python.rs Update string nodes for implicit concatenation (#7927) 2023-11-24 17:55:41 -06:00
soft_keywords.rs Replace .map_or(false, $closure) with .is_some_and(closure) (#6244) 2023-08-01 19:29:42 +02:00
string.rs remove several uses of unsafe (#8600) 2023-11-28 09:50:03 -05:00
token.rs Add support for PEP 701 (#7376) 2023-09-29 02:55:39 +00:00
typing.rs Replace .map_or(false, $closure) with .is_some_and(closure) (#6244) 2023-08-01 19:29:42 +02:00