BufferedEarlyLint in rustc_lint - Rust (original) (raw)
Struct BufferedEarlyLint
pub struct BufferedEarlyLint {
pub span: Option<MultiSpan>,
pub node_id: NodeId,
pub lint_id: LintId,
pub diagnostic: BuiltinLintDiag,
}
Expand description
Lints that are buffered up early on in the Session
before theLintLevels
is calculated.
The span of code that we are linting on.
The NodeId
of the AST node that generated the lint.
A lint Id that can be passed torustc_lint::early::EarlyContextAndPass::check_id
.
Customization of the Diag<'_>
for the lint.
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 264 bytes