mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 23:03:06 +03:00
17d3277064
Fixing memory exhaustion when formatting short code suggestion Details can be found in issue #76597. This PR replaces substractions with `saturating_sub`'s to avoid usize wrapping leading to memory exhaustion when formatting short suggestion messages.