about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorZack M. Davis <code@zackmdavis.net>2017-11-24 11:21:43 -0800
committerZack M. Davis <code@zackmdavis.net>2017-12-09 16:33:32 -0800
commit4fb57e0796cc61bec9d6a8a0392bbfe5855d693e (patch)
treec9f7685d30c078cd620a01107ab3157e98be82a3 /src/rustllvm/RustWrapper.cpp
parent883f5e5e657e714650d34cfb271abd8015210d08 (diff)
downloadrust-4fb57e0796cc61bec9d6a8a0392bbfe5855d693e.tar.gz
rust-4fb57e0796cc61bec9d6a8a0392bbfe5855d693e.zip
one-time diagnostic and suggestion for reëxporting private variant error
We issue just one message for an erroneous glob private variant reëxport
(using the Session's one-time-diagnostics capability), but individual
(non-glob) such erroneous reëxports still get their own messages. The
suggestion to make the enum public is also one-time.

The enum variant reëxport error didn't have an associated error code
(and remedying this here is deemed out of the scope of this commit), so
we resort to the expediency of using 0 as the `DiagnosticMessageId`
value.

Adding Debug to NameResolution was helpful in development.

This resolves #46209.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions