about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-09-16 01:30:32 +0200
committerGitHub <noreply@github.com>2020-09-16 01:30:32 +0200
commitfa4cfeb59720c95df00c1482f169a906e7c0726b (patch)
treec145f720f963dee195f18d6717de94b22c8276f7 /compiler/rustc_codegen_llvm/src
parentfb9bb2b5ca517d85e1041ea9f80d06f48054624c (diff)
parentd18b4bb7a735add53cad717fd96ec5f4b89d752d (diff)
downloadrust-fa4cfeb59720c95df00c1482f169a906e7c0726b.tar.gz
rust-fa4cfeb59720c95df00c1482f169a906e7c0726b.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions