about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-01-13 17:21:40 +0100
committerGitHub <noreply@github.com>2019-01-13 17:21:40 +0100
commitca1e379090d0aa27d4fb8b71210311d96c174e7c (patch)
tree66ec598a378419a4f72e46d62857e0a8f0ebddbf /src/rustllvm/RustWrapper.cpp
parentb1200a29b07dddb9c05b99166c7b676b6f2dbb4b (diff)
parentc2b477c19af9c5b8241e3d37a9d8a9cf1616750f (diff)
downloadrust-ca1e379090d0aa27d4fb8b71210311d96c174e7c.tar.gz
rust-ca1e379090d0aa27d4fb8b71210311d96c174e7c.zip
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
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions