Struct 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: 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.
Trait Implementations
impl PartialEq<BufferedEarlyLint> for BufferedEarlyLint[src]
impl PartialEq<BufferedEarlyLint> for BufferedEarlyLint[src]fn eq(&self, other: &BufferedEarlyLint) -> bool[src]
fn eq(&self, other: &BufferedEarlyLint) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &BufferedEarlyLint) -> bool[src]
fn ne(&self, other: &BufferedEarlyLint) -> bool[src]This method tests for !=.