rust/compiler/rustc_hir
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
..
src Rollup merge of #106927 - Ezrashaw:e0606-make-machine-applicable, r=estebank 2023-01-19 11:19:34 +01:00
Cargo.toml Remove from compiler/ crates 2022-09-29 16:49:04 +09:00