Module rustc_errors::emitter [−][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?
Re-exports
use self::Destination::*; |
use syntax_pos::DUMMY_SP; |
use syntax_pos::FileMap; |
use syntax_pos::Span; |
use syntax_pos::MultiSpan; |
use Level; |
use CodeSuggestion; |
use DiagnosticBuilder; |
use SubDiagnostic; |
use CodeMapperDyn; |
use DiagnosticId; |
use snippet::Annotation; |
use snippet::AnnotationType; |
use snippet::Line; |
use snippet::MultilineAnnotation; |
use snippet::StyledString; |
use snippet::Style; |
use styled_buffer::StyledBuffer; |
use rustc_data_structures::sync::Lrc; |
use atty; |
use std::borrow::Cow; |
use std::io::prelude::*; |
use std::io; |
use std::collections::HashMap; |
use std::cmp::min; |
use termcolor::StandardStream; |
use termcolor::ColorChoice; |
use termcolor::ColorSpec; |
use termcolor::BufferWriter; |
use termcolor::WriteColor; |
use termcolor::Color; |
use termcolor::Buffer; |
use unicode_width; |
Structs
EmitterWriter |
[ Experimental ]
|
FileWithAnnotatedLines |
[ Experimental ]
|
Enums
ColorConfig |
[ Experimental ]
|
Destination |
[ Experimental ]
|
WritableDst |
[ Experimental ]
|
Constants
ANONYMIZED_LINE_NUM |
[ Experimental ]
|
MAX_HIGHLIGHT_LINES |
[ Experimental ] maximum number of lines we will print for each error; arbitrary. |
MAX_SUGGESTIONS |
[ Experimental ] maximum number of suggestions to be shown |
Traits
Emitter |
[ Experimental ] Emitter trait for emitting errors. |
Functions
draw_col_separator |
[ Experimental ]
|
draw_col_separator_no_space |
[ Experimental ]
|
draw_col_separator_no_space_with_style |
[ Experimental ]
|
draw_multiline_line |
[ Experimental ]
|
draw_note_separator |
[ Experimental ]
|
draw_range |
[ Experimental ]
|
emit_to_destination |
[ Experimental ]
|
num_overlap |
[ Experimental ]
|
overlaps |
[ Experimental ]
|