Crate rustc_errors[−][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
extern crate std; |
extern crate atty; |
extern crate termcolor; |
extern crate libc; |
extern crate rustc_data_structures; |
extern crate serialize as rustc_serialize; |
extern crate syntax_pos; |
extern crate unicode_width; |
use std::prelude::v1::*; |
pub use emitter::ColorConfig; |
use self::Level::*; |
use emitter::Emitter; |
use emitter::EmitterWriter; |
use rustc_data_structures::sync; |
use rustc_data_structures::sync::Lrc; |
use rustc_data_structures::sync::Lock; |
use rustc_data_structures::sync::LockCell; |
use rustc_data_structures::fx::FxHashSet; |
use rustc_data_structures::stable_hasher::StableHasher; |
use std::borrow::Cow; |
use std::cell::Cell; |
use std::error; |
use std::fmt; |
use std::sync::atomic::AtomicUsize; |
use std::sync::atomic::Ordering::SeqCst; |
use std::panic; |
use termcolor::ColorSpec; |
use termcolor::Color; |
use syntax_pos::BytePos; |
use syntax_pos::Loc; |
use syntax_pos::FileLinesResult; |
use syntax_pos::FileMap; |
use syntax_pos::FileName; |
use syntax_pos::MultiSpan; |
use syntax_pos::Span; |
use syntax_pos::NO_EXPANSION; |
Modules
| diagnostic |
[ Experimental ]
|
| diagnostic_builder |
[ Experimental ]
|
| emitter |
[ Experimental ]
|
| lock |
[ Experimental ] Bindings to acquire a global named lock. |
| registry |
[ Experimental ]
|
| snippet |
[ Experimental ]
|
| styled_buffer |
[ Experimental ]
|
Structs
| CodeSuggestion |
[ Experimental ]
|
| Diagnostic |
[ Experimental ]
|
| DiagnosticBuilder |
[ Experimental ] Used for emitting structured error messages and other diagnostic information. |
| DiagnosticStyledString |
[ Experimental ]
|
| ExplicitBug |
[ Experimental ] Signifies that the compiler died with an explicit call to |
| FatalError |
[ Experimental ] Used as a return value to signify a fatal error occurred. (It is also used as the argument to panic at the moment, but that will eventually not be true.) |
| FatalErrorMarker |
[ Experimental ]
|
| Handler |
[ Experimental ] A handler deals with errors; certain errors (fatal, bug, unimpl) may cause immediate exit, others log errors for later reporting. |
| HandlerFlags |
[ Experimental ]
|
| SubDiagnostic |
[ Experimental ] For example a note attached to an error. |
| Substitution |
[ Experimental ] See the docs on |
| SubstitutionPart |
[ Experimental ]
|
Enums
| Applicability |
[ Experimental ]
|
| DiagnosticId |
[ Experimental ]
|
| Level |
[ Experimental ]
|
Constants
| TRACK_DIAGNOSTICS |
[ Experimental ]
|
Traits
| CodeMapper |
[ Experimental ]
|
Functions
| default_track_diagnostic |
[ Experimental ]
|
Type Definitions
| CodeMapperDyn |
[ Experimental ]
|