ruff/crates/ruff_text_size/src
Andrew Gallant 438ef334d3 [ty] Fix subtraction overflow bug
PR #21549 introduced a subtle overflow bug that seemed impossible, but
can empirically happen. This PR fixes it by saturating to zero.

I did try to write a regression test for this, but couldn't manage it.
Instead, I'll attach before-and-after screen recordings.
2025-11-21 15:07:37 -05:00
..
lib.rs Extract `LineIndex` independent methods from `Locator` (#13938) 2024-10-28 07:53:41 +00:00
range.rs [ruff] Add `TextRange::to_std_range` 2025-09-17 13:59:28 -04:00
schemars_impls.rs [`ruff`] Update schemars to v1 (#20942) 2025-10-20 08:59:52 +02:00
serde_impls.rs Add rustfmt.toml file (#18197) 2025-05-19 11:40:58 -04:00
size.rs [ty] Fix subtraction overflow bug 2025-11-21 15:07:37 -05:00
traits.rs Use `#[expect(lint)]` over `#[allow(lint)]` where possible (#17822) 2025-05-03 21:20:31 +02:00