Struct rustc::lint::LintTable
[−]
[src]
pub struct LintTable { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (
rustc_private
)Methods
impl LintTable
[src]
fn new() -> Self
🔬 This is a nightly-only experimental API. (
rustc_private
)fn add_lint<S: Into<MultiSpan>>(&mut self,
lint: &'static Lint,
id: NodeId,
sp: S,
msg: String)
lint: &'static Lint,
id: NodeId,
sp: S,
msg: String)
🔬 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 Encodable for LintTable
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io