mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
1a878df2b8
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. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |