[][src]Trait rustc::lint::LintPass

pub trait LintPass {
    fn get_lints(&self) -> LintArray;
}
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Required methods

fn get_lints(&self) -> LintArray

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Get descriptions of the lints this LintPass object can emit.

N.B., there is no enforcement that the object only emits lints it registered. And some rustc internal LintPasses register lints to be emitted by other parts of the compiler. If you want enforced access restrictions for your Lint, make it a private static item in its own module.

Loading content...

Implementors

impl LintPass for HardwiredLints[src]

Loading content...