Struct rustc::session::SessionUnstable
[-] [+]
[src]
pub struct Session { pub target: Config, pub host: Target, pub opts: Options, pub cstore: CStore, pub parse_sess: ParseSess, pub entry_fn: RefCell<Option<(NodeId, Span)>>, pub entry_type: Cell<Option<EntryFnType>>, pub plugin_registrar_fn: Cell<Option<NodeId>>, pub default_sysroot: Option<PathBuf>, pub local_crate_source_file: Option<PathBuf>, pub working_dir: PathBuf, pub lint_store: RefCell<LintStore>, pub lints: RefCell<NodeMap<Vec<(LintId, Span, String)>>>, pub plugin_llvm_passes: RefCell<Vec<String>>, pub crate_types: RefCell<Vec<CrateType>>, pub crate_metadata: RefCell<Vec<String>>, pub features: RefCell<Features>, pub recursion_limit: Cell<usize>, pub can_print_warnings: bool, }
Fields
Methods
impl Session
fn span_fatal(&self, sp: Span, msg: &str) -> !
fn span_fatal_with_code(&self, sp: Span, msg: &str, code: &str) -> !
fn fatal(&self, msg: &str) -> !
fn span_err(&self, sp: Span, msg: &str)
fn span_err_with_code(&self, sp: Span, msg: &str, code: &str)
fn err(&self, msg: &str)
fn err_count(&self) -> usize
fn has_errors(&self) -> bool
fn abort_if_errors(&self)
fn span_warn(&self, sp: Span, msg: &str)
fn span_warn_with_code(&self, sp: Span, msg: &str, code: &str)
fn warn(&self, msg: &str)
fn opt_span_warn(&self, opt_sp: Option<Span>, msg: &str)
fn span_note(&self, sp: Span, msg: &str)
fn span_end_note(&self, sp: Span, msg: &str)
fn span_suggestion(&self, sp: Span, msg: &str, suggestion: String)
Prints out a message with a suggested edit of the code.
See diagnostic::RenderSpan::Suggestion
for more information.