Guillaume Gomez 1a878df2b8
Rollup merge of #106927 - Ezrashaw:e0606-make-machine-applicable, r=estebank
make `CastError::NeedsDeref` create a `MachineApplicable` suggestion

Fixes #106903

Simple impl for the linked issue. I also made some other small changes:
- `CastError::ErrorGuaranteed` now owns an actual `ErrorGuaranteed`. This better enforces the static guarantees of `ErrorGuaranteed`.
- `CastError::NeedDeref` code simplified a bit, we now just suggest the `*`, instead of the whole expression as well.
2023-01-19 11:19:34 +01:00
..
2023-01-15 05:47:24 +09:00
2023-01-18 04:45:43 +00:00
2023-01-17 03:09:49 +00:00
2023-01-17 03:06:38 +00:00
2023-01-11 14:40:02 -08:00
2023-01-17 03:09:49 +00:00
2023-01-17 03:09:49 +00:00
2023-01-18 04:45:43 +00:00
2023-01-17 03:09:49 +00:00
2023-01-17 03:09:49 +00:00
2023-01-11 14:40:02 -08:00
2023-01-14 11:06:22 -08:00
2023-01-11 21:36:02 +00:00
2023-01-17 03:09:49 +00:00
2023-01-17 03:06:38 +00:00
2023-01-17 03:06:38 +00:00
2023-01-17 03:06:38 +00:00