Struct rustc_ap_rustc_lint_defs::BufferedEarlyLint[][src]

pub struct BufferedEarlyLint {
    pub span: MultiSpan,
    pub msg: String,
    pub node_id: NodeId,
    pub lint_id: LintId,
    pub diagnostic: BuiltinLintDiagnostics,
}
Expand description

Lints that are buffered up early on in the Session before the LintLevels is calculated.

Fields

span: MultiSpan

The span of code that we are linting on.

msg: String

The lint message.

node_id: NodeId

The NodeId of the AST node that generated the lint.

lint_id: LintId

A lint Id that can be passed to rustc_lint::early::EarlyContextAndPass::check_id.

diagnostic: BuiltinLintDiagnostics

Customization of the DiagnosticBuilder<'_> for the lint.

Trait Implementations

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.