]> git.lizzy.rs Git - rust.git/commit
Make conflicting borrow description more robust.
authorDavid Wood <david@davidtw.co>
Fri, 4 Jan 2019 19:56:41 +0000 (20:56 +0100)
committerDavid Wood <david@davidtw.co>
Fri, 4 Jan 2019 19:56:41 +0000 (20:56 +0100)
commit388dffe347f86f2c95ffc1fa2f5fa7898b7f8d66
tree438518312a0804db5be56440881b38a2cd696092
parent69bded2493c964cb1d5cce4f708d221e242aff41
Make conflicting borrow description more robust.

This commit improves the logic for place descriptions in conflicting
borrow errors so that borrows of union fields have better messages even
when the unions are embedded in other unions or structs.
src/librustc_mir/borrow_check/error_reporting.rs
src/test/ui/nll/issue-57100.rs [new file with mode: 0644]
src/test/ui/nll/issue-57100.stderr [new file with mode: 0644]