[][src]Module syntax::early_buffered_lints

⚙️ 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.

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

BufferedEarlyLintInternal

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

Enums

BufferedEarlyLintIdInternal

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.