[][src]Module syntax::early_buffered_lints

🔬 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?

Allows the buffering of lints for later.

Since we cannot have a dependency on librustc, we implement some types here that are somewhat redundant. Later, these types can be converted to types for use by the rest of the compiler.

Structs

BufferedEarlyLint [
Experimental
]

Stores buffered lint info which can later be passed to librustc.

Enums

BufferedEarlyLintId [
Experimental
]

Since we cannot import LintIds from rustc::lint, we define some Ids here which can later be passed to rustc::lint::Lint::from_parser_lint_id to get a rustc::lint::Lint.