#[diagnostic::on_unimplemented]
without filters
This commit adds support for a `#[diagnostic::on_unimplemented]` attribute with the following options: * `message` to customize the primary error message * `note` to add a customized note message to an error message * `label` to customize the label part of the error message Co-authored-by: León Orell Valerian Liehr <me@fmease.dev> Co-authored-by: Michael Goulet <michael@errs.io>
This commit is contained in:
parent
e5fedceabf
commit
5b8a7a0917
18 changed files with 360 additions and 39 deletions
|
@ -140,6 +140,9 @@ passes_deprecated_annotation_has_no_effect =
|
|||
passes_deprecated_attribute =
|
||||
deprecated attribute must be paired with either stable or unstable attribute
|
||||
|
||||
passes_diagnostic_diagnostic_on_unimplemented_only_for_traits =
|
||||
`#[diagnostic::on_unimplemented]` can only be applied to trait definitions
|
||||
|
||||
passes_diagnostic_item_first_defined =
|
||||
the diagnostic item is first defined here
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue