Crate rustc_lint[][src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Lints in the Rust compiler.

This currently only contains the definitions and implementations of most of the lints that rustc supports directly, it does not contain the infrastructure for defining/registering lints. That is available in rustc::lint and rustc_plugin respectively.

Note

This API is completely unstable and subject to change.

Re-exports

extern crate std;
extern crate syntax;
extern crate rustc;
extern crate log;
extern crate rustc_mir;
extern crate rustc_target;
extern crate syntax_pos;
use std::prelude::v1::*;
use rustc::lint;
use rustc::lint::builtin::BARE_TRAIT_OBJECTS;
use rustc::lint::builtin::ABSOLUTE_PATHS_NOT_STARTING_WITH_CRATE;
use rustc::session;
use rustc::util;
use session::Session;
use syntax::edition::Edition;
use lint::LintId;
use lint::FutureIncompatibleInfo;
use bad_style::*;
use builtin::*;
use types::*;
use unused::*;

Modules

bad_style [
Experimental
]
builtin [
Experimental
]

Lints in the Rust compiler.

types [
Experimental
]
unused [
Experimental
]

Functions

register_builtins [
Experimental
]

Tell the LintStore about all the built-in lints (the ones defined in this crate and the ones defined in rustc::lint::builtin).