Module rustc::session[][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 hir::def_id::CrateNum;
use ich::Fingerprint;
use ich;
use lint;
use lint::builtin::BuiltinLintDiagnostics;
use middle::allocator::AllocatorKind;
use middle::dependency_format;
use session::search_paths::PathKind;
use session::config::OutputType;
use ty::tls;
use util::nodemap::FxHashMap;
use util::nodemap::FxHashMap;
use util::nodemap::FxHashSet;
use util::nodemap::FxHashSet;
use util::common::duration_to_secs_str;
use util::common::ErrorReported;
use util::common::ProfileQueriesMsg;
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::sync::OneThread;
use rustc_data_structures::sync::Once;
use rustc_data_structures::sync::RwLock;
use syntax::ast::NodeId;
use errors;
use errors::DiagnosticBuilder;
use errors::DiagnosticId;
use errors::emitter::Emitter;
use errors::emitter::EmitterWriter;
use syntax::edition::Edition;
use syntax::json::JsonEmitter;
use syntax::feature_gate;
use syntax::symbol::Symbol;
use syntax::parse;
use syntax::parse::ParseSess;
use syntax::ast;
use syntax::codemap;
use syntax::feature_gate::AttributeType;
use syntax_pos::MultiSpan;
use syntax_pos::Span;
use rustc_target::spec::LinkerFlavor;
use rustc_target::spec::PanicStrategy;
use rustc_target::spec::Target;
use rustc_target::spec::TargetTriple;
use rustc_data_structures::flock;
use jobserver::Client;
use std;
use std::cell;
use std::cell::Cell;
use std::cell::RefCell;
use std::collections::HashMap;
use std::env;
use std::fmt;
use std::io::Write;
use std::path::Path;
use std::path::PathBuf;
use std::time::Duration;
use std::sync::mpsc;
use std::sync::atomic::AtomicUsize;
use std::sync::atomic::Ordering;

Modules

code_stats [
Experimental
]
config [
Experimental
]

Contains infrastructure for configuring the compiler, including parsing command line options.

filesearch [
Experimental
]
search_paths [
Experimental
]

Structs

CodeStats [
Experimental
]
CrateDisambiguator [
Experimental
]

Hash value constructed out of all the -C metadata arguments passed to the compiler. Together with the crate-name forms a unique global identifier for the crate.

FieldInfo [
Experimental
]
PerfStats [
Experimental
]
Session [
Experimental
]

Represents the data associated with a compilation session for a single crate.

TypeSizeInfo [
Experimental
]
VariantInfo [
Experimental
]

Enums

CompileIncomplete [
Experimental
]
DataTypeKind [
Experimental
]
DiagnosticBuilderMethod [
Experimental
]

Enum to support dispatch of one-time diagnostics (in Session.diag_once)

DiagnosticMessageId [
Experimental
]

Diagnostic message ID—used by Session.one_time_diagnostics to avoid emitting the same message more than once

IncrCompSession [
Experimental
]

Holds data on the current incremental compilation session, if there is one.

SizeKind [
Experimental
]

Functions

bug_fmt [
Experimental
]
build_session [
Experimental
]
build_session_ [
Experimental
]
build_session_with_codemap [
Experimental
]
compile_result_from_err_count [
Experimental
]
early_error [
Experimental
]
early_warn [
Experimental
]
opt_span_bug_fmt [
Experimental
]
span_bug_fmt [
Experimental
]

Type Definitions

CompileResult [
Experimental
]