about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm/mod.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-01-24 23:25:45 +0100
committerGitHub <noreply@github.com>2025-01-24 23:25:45 +0100
commit8824ae6a6c14636a4937f89e9caee80da53a45dc (patch)
treea87a509437d1a16b97c4924969235f80f6304aaf /compiler/rustc_codegen_llvm/src/llvm/mod.rs
parent884ec6b4abc516c262a952ca2b5a509e0f6540f2 (diff)
parent32cf7ccadc8aa5cda3952ff5504610d17443424e (diff)
downloadrust-8824ae6a6c14636a4937f89e9caee80da53a45dc.tar.gz
rust-8824ae6a6c14636a4937f89e9caee80da53a45dc.zip
Rollup merge of #135949 - estebank:shorten-ty, r=davidtwco
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/llvm/mod.rs')
0 files changed, 0 insertions, 0 deletions