mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 13:30:49 -05:00
These should all be minor cosmetic changes. To summarize: * In many cases, `-` was replaced with `^` for primary annotations. This is because, previously, whether `-` or `^` was used depended on the severity. But in the new data model, it's based on whether the annotation is "primary" or not. We could of course change this in whatever way we want, but I think we should roll with this for now. * The "secondary messages" in the old API are rendered as sub-diagnostics. This in turn results in a small change in the output format, since previously, the secondary messages were represented as just another snippet. We use sub-diagnostics because that's the intended way to enforce relative ordering between messages within a diagnostic. * The "info:" prefix used in some annotation messages has been dropped. We could re-add this, but I think I like it better without this prefix. I believe those 3 cover all of the snapshot changes here.
Markdown files within the mdtest/ subdirectory are tests of type inference and type checking;
executed by the tests/mdtest.rs integration test.
See crates/red_knot_test/README.md for documentation of this test format.