diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2025-01-23 19:04:40 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2025-01-24 01:10:33 +0000 |
| commit | 32cf7ccadc8aa5cda3952ff5504610d17443424e (patch) | |
| tree | 20f2b70498a6d4c90523ead5f38d462d881707dc /compiler/rustc_codegen_llvm/src | |
| parent | 99768c80a1c094a5cfc3b25a04e7a99de7210eae (diff) | |
| download | rust-32cf7ccadc8aa5cda3952ff5504610d17443424e.tar.gz rust-32cf7ccadc8aa5cda3952ff5504610d17443424e.zip | |
Use short type string in E0308 secondary span label
We were previously printing the full type on the "this expression has type" label.
```
error[E0308]: mismatched types
--> $DIR/secondary-label-with-long-type.rs:8:9
|
LL | let () = x;
| ^^ - this expression has type `((..., ..., ..., ...), ..., ..., ...)`
| |
| expected `((..., ..., ..., ...), ..., ..., ...)`, found `()`
|
= note: expected tuple `((..., ..., ..., ...), ..., ..., ...)`
found unit type `()`
= note: the full type name has been written to '$TEST_BUILD_DIR/diagnostic-width/secondary-label-with-long-type/secondary-label-with-long-type.long-type-3987761834644699448.txt'
= note: consider using `--verbose` to print the full type name to the console
```
Reported in a comment of #135919.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
