Struct rustc_lint_defs::LintBuffer [−][src]
pub struct LintBuffer {
pub map: NodeMap<Vec<BufferedEarlyLint>>,
}Fields
map: NodeMap<Vec<BufferedEarlyLint>>Implementations
pub fn add_lint(
&mut self,
lint: &'static Lint,
node_id: NodeId,
span: MultiSpan,
msg: &str,
diagnostic: BuiltinLintDiagnostics
)pub fn buffer_lint(
&mut self,
lint: &'static Lint,
id: NodeId,
sp: impl Into<MultiSpan>,
msg: &str
)pub fn buffer_lint_with_diagnostic(
&mut self,
lint: &'static Lint,
id: NodeId,
sp: impl Into<MultiSpan>,
msg: &str,
diagnostic: BuiltinLintDiagnostics
)Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for LintBufferimpl !Send for LintBufferimpl !Sync for LintBufferimpl Unpin for LintBufferimpl UnwindSafe for LintBufferBlanket Implementations
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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: 32 bytes