ruff/crates/ruff/tests
Brent Westbrook 7f8f1ab2c1
[`pyflakes`] Add secondary annotation showing previous definition (`F811`) (#19900)
## Summary

This is a second attempt at a first use of a new diagnostic feature
after #19886. I'll blame rustc for this one because it also has a
similar diagnostic:

<img width="735" height="335" alt="image"
src="https://github.com/user-attachments/assets/572fe1c3-1742-4ce4-b575-1d9196ff0932"
/>

We end up with a very similar diagnostic:

<img width="764" height="401" alt="image"
src="https://github.com/user-attachments/assets/01eaf0c7-2567-467b-a5d8-a27206b2c74c"
/>

## Test Plan

New snapshots and manual tests above
2025-08-14 13:23:43 -04:00
..
snapshots Add rule code to GitLab description (#19896) 2025-08-13 11:19:26 -04:00
analyze_graph.rs Support `.pyi` files in ruff analyze graph (#19611) 2025-07-28 22:00:27 -04:00
config.rs nit: docs for ignore & select (#15883) 2025-02-04 10:05:41 +01:00
direxist_guard.rs Error instead of `panic!` when running Ruff from a deleted directory (#16903) (#17054) 2025-04-01 14:17:07 +02:00
format.rs Update Rust crate toml to 0.9.0 (#19320) 2025-07-14 13:11:10 +05:30
integration_test.rs Move full diagnostic rendering to `ruff_db` (#19415) 2025-08-08 12:56:23 -04:00
lint.rs [`pyflakes`] Add secondary annotation showing previous definition (`F811`) (#19900) 2025-08-14 13:23:43 -04:00
resolve_files.rs Update insta snapshots (#14366) 2024-11-15 19:31:15 +01:00
show_settings.rs Update Rust toolchain to 1.88 and MSRV to 1.86 (#19011) 2025-06-28 20:24:00 +02:00
version.rs Update Rust crate toml to 0.9.0 (#19320) 2025-07-14 13:11:10 +05:30