Trait rustc_lint::lint::LintPass
[−]
[src]
pub trait LintPass {
fn get_lints(&self) -> &'static [&'static &'static Lint];
}Unstable (
rustc_private)Required Methods
fn get_lints(&self) -> &'static [&'static &'static Lint]
Unstable (
rustc_private)Get descriptions of the lints this LintPass object can emit.
NB: 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.
Implementors
impl LintPass for HardwiredLintsimpl LintPass for GatherNodeLevels