rust/compiler/rustc_mir_build/src
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
..
build Add CONST_ITEM_MUTATION lint 2020-09-07 08:44:35 -04:00
thir Note when a a move/borrow error is caused by a deref coercion 2020-09-10 20:56:20 -04:00
lib.rs Use ops::ControlFlow in graph::iterate 2020-09-04 01:45:10 -07:00
lints.rs Rollup merge of #76318 - scottmcm:one-control-flow, r=ecstatic-morse 2020-09-07 01:18:05 +02:00