Skip to content

Commit

Permalink
Merge pull request #1680 from ehuss/on_unimplemented-clarifications
Browse files Browse the repository at this point in the history
Clarify rules for on_unimplemented warnings
  • Loading branch information
traviscross authored Dec 3, 2024
2 parents bf115a4 + cf9b734 commit 56d2f19
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/attributes/diagnostics.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,11 +505,10 @@ r[attributes.diagnostic.on_unimplemented.note-repetition]
The `note` option can appear several times, which results in several note messages being emitted.
r[attributes.diagnostic.on_unimplemented.repetition]
If any of the other options appears several times the first occurrence of the relevant option specifies the actually used value.
If any of the other options appears several times the first occurrence of the relevant option specifies the actually used value. Subsequent occurrences generates a warning.
r[attributes.diagnostic.on_unimplemented.warnings]
Any other occurrence generates an lint warning.
For any other non-existing option a lint-warning is generated.
r[attributes.diagnostic.on_unimplemented.unknown-keys]
A warning is generated for any unknown keys.
r[attributes.diagnostic.on_unimplemented.format-string]
All three options accept a string as an argument, interpreted using the same formatting as a [`std::fmt`] string.
Expand Down

0 comments on commit 56d2f19

Please sign in to comment.