Struct rustc_lint::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: MultiSpanExpand description
The span of code that we are linting on.
msg: StringExpand description
The lint message.
node_id: NodeIdExpand description
The NodeId of the AST node that generated the lint.
lint_id: LintIdExpand description
A lint Id that can be passed to
rustc_lint::early::EarlyContextAndPass::check_id.
diagnostic: BuiltinLintDiagnosticsExpand description
Customization of the DiagnosticBuilder<'_> for the lint.