rust/compiler/rustc_mir/src
Dylan DPC fa4cfeb597
Rollup merge of #75304 - Aaron1011:feature/diag-deref-move-out, r=estebank
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-16 01:30:32 +02:00
..
borrow_check Note when a a move/borrow error is caused by a deref coercion 2020-09-10 20:56:20 -04:00
const_eval Change ty.kind to a method 2020-09-04 17:47:51 +02:00
dataflow Rollup merge of #76500 - richkadel:mir-graphviz-dark, r=tmandry 2020-09-09 21:02:35 -07:00
interpret Change ty.kind to a method 2020-09-04 17:47:51 +02:00
monomorphize Auto merge of #76541 - matthiaskrgr:unstable_sort, r=davidtwco 2020-09-14 21:43:17 +00:00
transform Rollup merge of #75304 - Aaron1011:feature/diag-deref-move-out, r=estebank 2020-09-16 01:30:32 +02:00
util Note when a a move/borrow error is caused by a deref coercion 2020-09-10 20:56:20 -04:00
lib.rs Extend dataflow framework to support arbitrary lattices 2020-08-30 11:15:24 -07:00
shim.rs Change ty.kind to a method 2020-09-04 17:47:51 +02:00