Private enum variant reexport error emits an error per each variant #46209
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
WG-diagnostics
Working group: Diagnostics
When trying to reexport the variants of a private enum, a diagnostic is emitted for each variant pointing always at the same reexport span, making it too verbose:
Ideally there would be only one diagnostic emitted, with an extra span pointing at the definition of
Enum
to suggest making it public.The text was updated successfully, but these errors were encountered: