Skip to content

warning attribute missing in diagnostics derive macro reference #1704

Closed
@nicklimmm

Description

@nicklimmm

Previously, the warn_ attribute is used to add warning diagnostics. But it was changed to warning in this PR.

Some information is also outdated in both Diagnostic and Subdiagnostic derives, e.g. no warning reference in Subdiagnostic, the attribute is also applicable on structs.

Diagnostic derive documentation from nightly rustc (source of truth):

What we have in the guide instead:

Updating the warning references in the guide can help new contributors to support the translation effort (issue tracker rust-lang/rust#100717)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions