mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
b7a1ff2aaa
Suggest `{Option,Result}::as_ref()` instead of `cloned()` in some cases
Fixes #114050
When we have an expr available that produces the type expectation, we can suggest appending `.as_ref()` to the span, instead of cloning the expr producing the mismatch