Closed
Description
Summary
While reviewing #10283, we stumbled across this bug that added or
as a new lint to the "Affected Lints" list.
This happened because there was an "[...], or [...]" in the configuration option documentation.
Reproducer
I tried this code:
/// Lint: PUB_UNDERSCORE_FIELDS
///
/// Lint "public" fields in a struct that are prefixed with an underscore based on their
/// exported visibility, or whether they are marked as "pub".
(pub_underscore_fields_behavior: PubUnderscoreFieldsBehaviour = PubUnderscoreFieldsBehaviour::PublicallyExported),
I expected to see this happen (in the config's documentation):
Affected lints:
Instead, this happened:
Affected lints:
This was fixed by changing that comma to a semi-colon
Version
[...]
Additional Labels
No response