rust/library/core/src/ops
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
..
arith.rs Add missing examples on core traits' method 2020-09-10 14:34:43 +02:00
bit.rs Add missing examples on binary core traits 2020-09-11 23:43:37 +02:00
control_flow.rs Add BREAK too, and improve the comments 2020-09-04 16:28:23 -07:00
deref.rs Note when a a move/borrow error is caused by a deref coercion 2020-09-10 20:56:20 -04:00
drop.rs Remove links that get imported from the prelude 2020-08-21 23:27:23 +02:00
function.rs Use intra-doc-links in core::ops::* 2020-08-21 23:19:10 +02:00
generator.rs
index.rs Remove links that get imported from the prelude 2020-08-21 23:27:23 +02:00
mod.rs Format ControlFlow changes with rustfmt 2020-09-02 14:12:21 -05:00
range.rs apply bootstrap cfgs 2020-08-26 10:17:31 +02:00
try.rs apply bootstrap cfgs 2020-08-26 10:17:31 +02:00
unsize.rs Use intra-doc-links in core::ops::* 2020-08-21 23:19:10 +02:00