rust/src/test/ui/union
Mazdak Farrokhzad ca1e379090
Rollup merge of #57102 - davidtwco:issue-57100, r=nikomatsakis
NLL: Add union justifications to conflicting borrows.

Fixes #57100.

This PR adds justifications to error messages for conflicting borrows of union fields.

Where previously an error message would say ``cannot borrow `u.b` as mutable..``, it now says ``cannot borrow `u` (via `u.b`) as mutable..``.

r? @pnkfelix
2019-01-13 17:21:40 +01:00
..
union-borrow-move-parent-sibling.nll.stderr Improve diagnostic labels and add note. 2019-01-04 22:43:51 +01:00
union-borrow-move-parent-sibling.rs Remove licenses 2018-12-25 21:08:33 -07:00
union-borrow-move-parent-sibling.stderr Improve diagnostic labels and add note. 2019-01-04 22:43:51 +01:00
union-const-eval.rs Remove licenses 2018-12-25 21:08:33 -07:00
union-const-pat.rs Remove licenses 2018-12-25 21:08:33 -07:00
union-const-pat.stderr Remove licenses 2018-12-25 21:08:33 -07:00
union-copy.rs Remove licenses 2018-12-25 21:08:33 -07:00
union-copy.stderr Remove licenses 2018-12-25 21:08:33 -07:00
union-derive-clone.rs Remove licenses 2018-12-25 21:08:33 -07:00
union-derive-clone.stderr Remove licenses 2018-12-25 21:08:33 -07:00
union-derive-eq.rs Remove licenses 2018-12-25 21:08:33 -07:00
union-derive-eq.stderr Remove licenses 2018-12-25 21:08:33 -07:00
union-derive.rs Remove licenses 2018-12-25 21:08:33 -07:00
union-derive.stderr Remove licenses 2018-12-25 21:08:33 -07:00
union-empty.rs Remove licenses 2018-12-25 21:08:33 -07:00
union-empty.stderr Remove licenses 2018-12-25 21:08:33 -07:00
union-fields-1.rs Remove licenses 2018-12-25 21:08:33 -07:00
union-fields-1.stderr Remove licenses 2018-12-25 21:08:33 -07:00
union-fields-2.rs Remove licenses 2018-12-25 21:08:33 -07:00
union-fields-2.stderr Remove licenses 2018-12-25 21:08:33 -07:00
union-generic.rs Remove licenses 2018-12-25 21:08:33 -07:00
union-generic.stderr Remove licenses 2018-12-25 21:08:33 -07:00
union-lint-dead-code.rs Remove licenses 2018-12-25 21:08:33 -07:00
union-lint-dead-code.stderr Remove licenses 2018-12-25 21:08:33 -07:00
union-nonrepresentable.rs Remove licenses 2018-12-25 21:08:33 -07:00
union-nonrepresentable.stderr Remove licenses 2018-12-25 21:08:33 -07:00
union-repr-c.rs Remove licenses 2018-12-25 21:08:33 -07:00
union-repr-c.stderr Remove licenses 2018-12-25 21:08:33 -07:00
union-sized-field.rs Remove licenses 2018-12-25 21:08:33 -07:00
union-sized-field.stderr Fix broken links to second edition TRPL. 2019-01-01 12:53:07 -05:00
union-suggest-field.rs use structured suggestion for method calls 2019-01-03 13:42:52 -05:00
union-suggest-field.stderr use structured suggestion for method calls 2019-01-03 13:42:52 -05:00
union-unsafe.rs Remove licenses 2018-12-25 21:08:33 -07:00
union-unsafe.stderr Remove licenses 2018-12-25 21:08:33 -07:00
union-unsized.rs Remove licenses 2018-12-25 21:08:33 -07:00
union-unsized.stderr Fix broken links to second edition TRPL. 2019-01-01 12:53:07 -05:00
union-with-drop-fields-lint.rs Remove licenses 2018-12-25 21:08:33 -07:00
union-with-drop-fields-lint.stderr Remove licenses 2018-12-25 21:08:33 -07:00