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 mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
source_map mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
symbol mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
analyze_source_file.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
caching_source_map_view.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
def_id.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
edition.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
fatal_error.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
hygiene.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
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 mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
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 mv compiler to compiler/ 2020-08-30 18:45:07 +03:00