[−][src]Module rustc_errors::annotate_snippet_emitter_writer

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

AnnotateSnippetEmitterWriter

Generates diagnostics using annotate-snippet

Functions

annotation_type_for_level

Maps Diagnostic::Level to snippet::AnnotationType

source_string

Provides the source string for the given line of file