about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-01-25 08:03:37 +0100
committerGitHub <noreply@github.com>2025-01-25 08:03:37 +0100
commit2080d66a159e859a39806aee882d318324865b83 (patch)
treee4170e5c158d6c1d24a046f261603881aef9b1bb /compiler/rustc_data_structures/src
parent6cb2820b7e260659b959fa4be4626cdffcfb4a50 (diff)
parent91b759354c3a0f8496af6ae72b1b27fd2f880055 (diff)
downloadrust-2080d66a159e859a39806aee882d318324865b83.tar.gz
rust-2080d66a159e859a39806aee882d318324865b83.zip
Rollup merge of #136018 - estebank:long-moved-type, r=jieyouxu
Use short ty string for move errors

```
error[E0382]: use of moved value: `x`
  --> bay.rs:14:14
   |
12 | fn foo(x: D) {
   |        - move occurs because `x` has type `(((..., ..., ..., ...), ..., ..., ...), ..., ..., ...)`, which does not implement the `Copy` trait
13 |     let _a = x;
   |              - value moved here
14 |     let _b = x; //~ ERROR use of moved value
   |              ^ value used here after move
   |
   = note: the full type name has been written to 'bay.long-type-14349227078439097973.txt'
   = note: consider using `--verbose` to print the full type name to the console
help: consider cloning the value if the performance cost is acceptable
   |
13 |     let _a = x.clone();
   |               ++++++++
```

Address 4th case in #135919.
Diffstat (limited to 'compiler/rustc_data_structures/src')
0 files changed, 0 insertions, 0 deletions