Skip to content

Commit 56d2f19

Browse files
authored
Merge pull request #1680 from ehuss/on_unimplemented-clarifications
Clarify rules for on_unimplemented warnings
2 parents bf115a4 + cf9b734 commit 56d2f19

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/attributes/diagnostics.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -505,11 +505,10 @@ r[attributes.diagnostic.on_unimplemented.note-repetition]
505505
The `note` option can appear several times, which results in several note messages being emitted.
506506
507507
r[attributes.diagnostic.on_unimplemented.repetition]
508-
If any of the other options appears several times the first occurrence of the relevant option specifies the actually used value.
508+
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.
509509
510-
r[attributes.diagnostic.on_unimplemented.warnings]
511-
Any other occurrence generates an lint warning.
512-
For any other non-existing option a lint-warning is generated.
510+
r[attributes.diagnostic.on_unimplemented.unknown-keys]
511+
A warning is generated for any unknown keys.
513512
514513
r[attributes.diagnostic.on_unimplemented.format-string]
515514
All three options accept a string as an argument, interpreted using the same formatting as a [`std::fmt`] string.

0 commit comments

Comments
 (0)