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
impl RefUnwindSafe for BufferedEarlyLint
impl !Send for BufferedEarlyLint
impl !Sync for BufferedEarlyLint
impl Unpin for BufferedEarlyLint
impl UnwindSafe for BufferedEarlyLint