rust/compiler/rustc_mir_build
Aaron Hill d18b4bb7a7
Note when a a move/borrow error is caused by a deref coercion
Fixes #73268

When a deref coercion occurs, we may end up with a move error if the
base value has been partially moved out of. However, we do not indicate
anywhere that a deref coercion is occuring, resulting in an error
message with a confusing span.

This PR adds an explicit note to move errors when a deref coercion is
involved. We mention the name of the type that the deref-coercion
resolved to, as well as the `Deref::Target` associated type being used.
2020-09-10 20:56:20 -04:00
..
src Note when a a move/borrow error is caused by a deref coercion 2020-09-10 20:56:20 -04:00
Cargo.toml mv compiler to compiler/ 2020-08-30 18:45:07 +03:00