about summary refs log tree commit diff
path: root/tests/ui/diagnostic-width/long-span.rs
AgeCommit message (Collapse)AuthorLines
2025-03-07Make trimming logic work on more than one span at a timeEsteban Küber-1/+3
2025-03-07On long spans, trim the middle of them to make them fit in the terminal widthEsteban Küber-0/+9
When encountering a single line span that is wider than the terminal, we keep context at the start and end of the span but otherwise remove the code from the middle. This is somewhat independent from whether the left and right margins of the output have been trimmed as well. ``` error[E0308]: mismatched types --> $DIR/long-span.rs:6:15 | LL | ... = [0, 0, 0, 0, ..., 0, 0]; | ^^^^^^^^^^^^^...^^^^^^^ expected `u8`, found `[{integer}; 1681]` ``` Address part of #137680 (missing handling of the long suggestion). Fix #125581.