rust/compiler/rustc_mir_build/src
Matthias Krüger 2080d66a15
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.
2025-01-25 08:03:37 +01:00
..
builder don't drop types with no drop glue when tailcalling 2025-01-24 06:45:19 +01:00
thir Use short ty string for move errors 2025-01-24 18:12:56 +00:00
check_tail_calls.rs Fix typos 2024-12-27 21:35:57 +08:00
check_unsafety.rs Run clippy --fix for unnecessary_map_or lint 2025-01-19 19:15:00 +00:00
errors.rs Use short ty string for move errors 2025-01-24 18:12:56 +00:00
lib.rs Consolidate ad-hoc MIR lints into real pass-manager-based MIR lints 2025-01-18 21:25:47 +00:00