[][src]Module rustc_errors::annotate_snippet_emitter_writer

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

Emit diagnostics using the annotate-snippets library

This is the equivalent of ./emitter.rs but making use of the annotate-snippets library instead of building the output ourselves.

Structs

AnnotateSnippetEmitterWriterInternal

Generates diagnostics using annotate-snippet

Functions

annotation_type_for_levelInternal

Maps Diagnostic::Level to snippet::AnnotationType

source_stringInternal

Provides the source string for the given line of file