ruff/crates/ruff_python_parser/tests
Brent Westbrook 835e31b3ff
Fix syntax error false positive on alternative `match` patterns (#21362)
Summary
--

Fixes #21360 by using the union of names instead of overwriting them, as
Micha suggested originally on #21104.

This avoids overwriting the `n` name in the `Subscript` by the empty set
of names visited in the nested OR pattern before visiting the other arm
of the outer OR pattern.

Test Plan
--

A new inline test case taken from the issue
2025-11-10 10:51:51 -05:00
..
snapshots Fix syntax error false positive on alternative `match` patterns (#21362) 2025-11-10 10:51:51 -05:00
fixtures.rs [syntax-error]: no binding for nonlocal PLE0117 as a semantic syntax error (#21032) 2025-11-05 19:13:28 +00:00
generate_inline_tests.rs Update Rust crate anyhow to v1.0.100 (#20499) 2025-09-22 09:51:52 +02:00