diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-07-25 07:04:13 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-09-10 20:56:20 -0400 |
| commit | d18b4bb7a735add53cad717fd96ec5f4b89d752d (patch) | |
| tree | be055d03d7c3271fa3056d6a0c9df26a77755d22 /compiler/rustc_codegen_llvm/src | |
| parent | a1947b3f9e2831e2060bc42f0c78e4a2bb67930a (diff) | |
| download | rust-d18b4bb7a735add53cad717fd96ec5f4b89d752d.tar.gz rust-d18b4bb7a735add53cad717fd96ec5f4b89d752d.zip | |
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
