about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-02-27 21:11:22 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-03-07 17:55:08 +0000
commit72326bfe4033fe51c5cb0f31614bbf6e66ec77f9 (patch)
tree9b2bf94c15ff4dc1faac0c03b5bfe772357e270c /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentd975bd3a67e4f18c02f57d8d66a9d32daa295a47 (diff)
downloadrust-72326bfe4033fe51c5cb0f31614bbf6e66ec77f9.tar.gz
rust-72326bfe4033fe51c5cb0f31614bbf6e66ec77f9.zip
On long spans, trim the middle of them to make them fit in the terminal width
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions