Struct rustc_typeck::lint::LintTable
[−]
[src]
pub struct LintTable { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (
rustc_private
)Methods
impl LintTable
[src]
fn new() -> LintTable
🔬 This is a nightly-only experimental API. (
rustc_private
)fn add_lint<S>(&mut self, lint: &'static Lint, id: NodeId, sp: S, msg: String) where S: Into<MultiSpan>
🔬 This is a nightly-only experimental API. (
rustc_private
)fn add_lint_diagnostic<M>(&mut self, lint: &'static Lint, id: NodeId, msg: M) where M: IntoEarlyLint
🔬 This is a nightly-only experimental API. (
rustc_private
)fn get(&self, id: NodeId) -> &[EarlyLint]
🔬 This is a nightly-only experimental API. (
rustc_private
)fn take(&mut self, id: NodeId) -> Vec<EarlyLint>
🔬 This is a nightly-only experimental API. (
rustc_private
)fn transfer(&mut self, into: &mut LintTable)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn get_any(&self) -> Option<(&NodeId, &Vec<EarlyLint>)>
🔬 This is a nightly-only experimental API. (
rustc_private
)Returns the first (id, lint) pair that is non-empty. Used to implement a sanity check in lints that all node-ids are visited.
Trait Implementations
impl Decodable for LintTable
[src]
fn decode<__D>(__arg_0: &mut __D) -> Result<LintTable, __D::Error> where __D: Decoder
🔬 This is a nightly-only experimental API. (
rustc_private
)