Diagnostic in rustc_macros - Rust
Description: API documentation for the Rust `Diagnostic` derive in crate `rustc_macros`.

Skip to main content

## Diagnostic

# Derive Macro Diagnostic

Source

    #[derive(Diagnostic)]
    {
        // Attributes available to this derive:
        #[diag]
        #[help]
        #[help_once]
        #[note]
        #[note_once]
        #[warning]
        #[skip_arg]
        #[primary_span]
        #[label]
        #[subdiagnostic]
        #[suggestion]
        #[suggestion_short]
        #[suggestion_hidden]
        #[suggestion_verbose]
    }