]> git.lizzy.rs Git - rust.git/commit - src/tools/rustfmt
Auto merge of #75302 - Aaron1011:feature/partial-move-diag, r=estebank
authorbors <bors@rust-lang.org>
Tue, 25 Aug 2020 20:54:59 +0000 (20:54 +0000)
committerbors <bors@rust-lang.org>
Tue, 25 Aug 2020 20:54:59 +0000 (20:54 +0000)
commitbf4342114e357f2934d59e12e31e94532ddb2adf
treeaebf9b400056954bbf1ccf9c645200ec12e706e2
parent8ba22504e8e5dcbbe136d97f63c1280dabc523d0
parent5f7436b5fd27e534b2800389067b169cbe7864b7
Auto merge of #75302 - Aaron1011:feature/partial-move-diag, r=estebank

Be consistent when describing a move as a 'partial' in diagnostics

When an error occurs due to a partial move, we would use the world
"partial" in some parts of the error message, but not in others. This
commit ensures that we use the word 'partial' in either all or none of
the diagnostic messages.

Additionally, we no longer describe a move out of a `Box` via `*` as
a 'partial move'. This was a pre-existing issue, but became more
noticable when the word 'partial' is used in more places.
src/librustc_mir/borrow_check/diagnostics/conflict_errors.rs
src/librustc_mir/borrow_check/diagnostics/mod.rs