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<Path>,
    pub local_crate_source_file: Option<Path>,
    pub working_dir: Path,
    pub lint_store: RefCell<LintStore>,
    pub lints: RefCell<NodeMap<Vec<(LintId, Span, 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

target
host
opts
cstore
parse_sess
entry_fn
entry_type
plugin_registrar_fn
default_sysroot
local_crate_source_file
working_dir
lint_store
lints
crate_types
crate_metadata
features
recursion_limit

The maximum recursion limit for potentially infinitely recursive operations such as auto-dereference and monomorphization.

can_print_warnings

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_help(&self, sp: Span, msg: &str)

fn fileline_note(&self, sp: Span, msg: &str)

fn fileline_help(&self, sp: Span, msg: &str)

fn note(&self, msg: &str)

fn help(&self, msg: &str)

fn opt_span_bug(&self, opt_sp: Option<Span>, msg: &str) -> !

fn span_bug(&self, sp: Span, msg: &str) -> !

fn bug(&self, msg: &str) -> !

fn span_unimpl(&self, sp: Span, msg: &str) -> !

fn unimpl(&self, msg: &str) -> !

fn add_lint(&self, lint: &'static Lint, id: NodeId, sp: Span, msg: String)

fn next_node_id(&self) -> NodeId

fn reserve_node_ids(&self, count: NodeId) -> NodeId

fn diagnostic<'a>(&'a self) -> &'a SpanHandler

fn codemap<'a>(&'a self) -> &'a CodeMap

fn impossible_case(&self, sp: Span, msg: &str) -> !

fn verbose(&self) -> bool

fn time_passes(&self) -> bool

fn count_llvm_insns(&self) -> bool

fn count_type_sizes(&self) -> bool

fn time_llvm_passes(&self) -> bool

fn trans_stats(&self) -> bool

fn meta_stats(&self) -> bool

fn asm_comments(&self) -> bool

fn no_verify(&self) -> bool

fn borrowck_stats(&self) -> bool

fn print_llvm_passes(&self) -> bool

fn lto(&self) -> bool

fn no_landing_pads(&self) -> bool

fn unstable_options(&self) -> bool

fn print_enum_sizes(&self) -> bool

fn sysroot<'a>(&'a self) -> &'a Path

fn target_filesearch(&self, kind: PathKind) -> FileSearch

fn host_filesearch(&self, kind: PathKind) -> FileSearch