1
Fork 0
rust/compiler/rustc_span/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
..
analyze_source_file
source_map
symbol
analyze_source_file.rs
caching_source_map_view.rs
def_id.rs
edition.rs
fatal_error.rs
hygiene.rs
lib.rs Add visualization of rustc span in doc 2020-09-13 20:48:15 +08:00
source_map.rs Adds two source span utility functions used in source-based coverage 2020-08-31 18:41:57 -07:00
span_encoding.rs
symbol.rs Note when a a move/borrow error is caused by a deref coercion 2020-09-10 20:56:20 -04:00
tests.rs