Skip to main content

Module session

Module session 

Source

Re-exportsยง

use std::any::Any; ๐Ÿ”’
use std::ops::Deref; ๐Ÿ”’
use std::ops::DerefMut; ๐Ÿ”’
use std::path::Component::Prefix; ๐Ÿ”’
use std::path::PathBuf; ๐Ÿ”’
use std::str::FromStr; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::sync::atomic::AtomicBool; ๐Ÿ”’
use std::sync::atomic::AtomicUsize; ๐Ÿ”’
use std::env; ๐Ÿ”’
use std::env; ๐Ÿ”’
use std::io; ๐Ÿ”’
use rustc_data_structures::flock; ๐Ÿ”’
use rustc_data_structures::fx::FxHashMap; ๐Ÿ”’
use rustc_data_structures::fx::FxHashSet; ๐Ÿ”’
use rustc_data_structures::fx::FxIndexSet; ๐Ÿ”’
use rustc_data_structures::profiling::SelfProfiler; ๐Ÿ”’
use rustc_data_structures::profiling::SelfProfilerRef; ๐Ÿ”’
use rustc_data_structures::sync::AppendOnlyVec; ๐Ÿ”’
use rustc_data_structures::sync::DynSend; ๐Ÿ”’
use rustc_data_structures::sync::DynSync; ๐Ÿ”’
use rustc_data_structures::sync::Lock; ๐Ÿ”’
use rustc_errors::annotate_snippet_emitter_writer::AnnotateSnippetEmitter; ๐Ÿ”’
use rustc_errors::emitter::DynEmitter; ๐Ÿ”’
use rustc_errors::emitter::HumanReadableErrorType; ๐Ÿ”’
use rustc_errors::emitter::OutputTheme; ๐Ÿ”’
use rustc_errors::emitter::stderr_destination; ๐Ÿ”’
use rustc_errors::json::JsonEmitter; ๐Ÿ”’
use rustc_errors::timings::TimingSectionHandler; ๐Ÿ”’
use rustc_errors::Diag; ๐Ÿ”’
use rustc_errors::DiagCtxt; ๐Ÿ”’
use rustc_errors::DiagCtxtHandle; ๐Ÿ”’
use rustc_errors::DiagMessage; ๐Ÿ”’
use rustc_errors::Diagnostic; ๐Ÿ”’
use rustc_errors::ErrorGuaranteed; ๐Ÿ”’
use rustc_errors::PResult; ๐Ÿ”’
use rustc_errors::TerminalUrl; ๐Ÿ”’
use rustc_feature::UnstableFeatures; ๐Ÿ”’
use rustc_macros::StableHash; ๐Ÿ”’
use rustc_span::edition::Edition; ๐Ÿ”’
use rustc_span::source_map::FilePathMapping; ๐Ÿ”’
use rustc_span::source_map::SourceMap; ๐Ÿ”’
use rustc_span::RealFileName; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use rustc_span::Symbol; ๐Ÿ”’
use rustc_structures::CrateType; ๐Ÿ”’
use rustc_structures::Limit; ๐Ÿ”’
use rustc_structures::LintName; ๐Ÿ”’
use rustc_target::asm::InlineAsmArch; ๐Ÿ”’
use rustc_target::spec::Arch; ๐Ÿ”’
use rustc_target::spec::CfgAbi; ๐Ÿ”’
use rustc_target::spec::CodeModel; ๐Ÿ”’
use rustc_target::spec::DebuginfoKind; ๐Ÿ”’
use rustc_target::spec::MergeFunctions; ๐Ÿ”’
use rustc_target::spec::Os; ๐Ÿ”’
use rustc_target::spec::PanicStrategy; ๐Ÿ”’
use rustc_target::spec::RelocModel; ๐Ÿ”’
use rustc_target::spec::RelroLevel; ๐Ÿ”’
use rustc_target::spec::SanitizerSet; ๐Ÿ”’
use rustc_target::spec::SmallDataThresholdSupport; ๐Ÿ”’
use rustc_target::spec::SplitDebuginfo; ๐Ÿ”’
use rustc_target::spec::StackProtector; ๐Ÿ”’
use rustc_target::spec::SymbolVisibility; ๐Ÿ”’
use rustc_target::spec::Target; ๐Ÿ”’
use rustc_target::spec::TargetTuple; ๐Ÿ”’
use rustc_target::spec::TlsModel; ๐Ÿ”’
use rustc_target::spec::apple; ๐Ÿ”’
use crate::code_stats::CodeStats; ๐Ÿ”’
pub use crate::code_stats::DataTypeKind;
pub use crate::code_stats::FieldInfo;
pub use crate::code_stats::FieldKind;
pub use crate::code_stats::SizeKind;
pub use crate::code_stats::VariantInfo;
use crate::config; ๐Ÿ”’
use crate::config::BranchProtection; ๐Ÿ”’
use crate::config::Cfg; ๐Ÿ”’
use crate::config::CheckCfg; ๐Ÿ”’
use crate::config::CoverageLevel; ๐Ÿ”’
use crate::config::CoverageOptions; ๐Ÿ”’
use crate::config::DebugInfo; ๐Ÿ”’
use crate::config::ErrorOutputType; ๐Ÿ”’
use crate::config::FunctionReturn; ๐Ÿ”’
use crate::config::Input; ๐Ÿ”’
use crate::config::InstrumentCoverage; ๐Ÿ”’
use crate::config::InstrumentMcount; ๐Ÿ”’
use crate::config::LtoCli; ๐Ÿ”’
use crate::config::NATIVE_CPU; ๐Ÿ”’
use crate::config::OutFileName; ๐Ÿ”’
use crate::config::OutputType; ๐Ÿ”’
use crate::config::PAuthKey; ๐Ÿ”’
use crate::config::PointerAuthOption; ๐Ÿ”’
use crate::config::SwitchWithOptPath; ๐Ÿ”’
use crate::filesearch::FileSearch; ๐Ÿ”’
use crate::lint::LintId; ๐Ÿ”’
use crate::parse::ParseSess; ๐Ÿ”’
use crate::search_paths::SearchPath; ๐Ÿ”’
use crate::diagnostics; ๐Ÿ”’
use crate::filesearch; ๐Ÿ”’
use crate::lint; ๐Ÿ”’
use rustc_errors::codes::*; ๐Ÿ”’

Structsยง

BorrowedIncrCompSession
A runtime tracked borrow of the incr comp session. Can be sent to worker threads.
CodegenBackendInit
Some info about the backend, returned by CodegenBackend::init and put into the Session.
CompilerIO
EarlyDiagCtxt
A wrapper around an DiagCtxt that is used for early error emissions.
EarlySession
Partial session built before the full session. More specifically, EarlySession is used to init the codegen backend, and then both pieces are used to build the full Session.
IncrCompSession
Holds data on the current incremental compilation session, if there is one.
Limits
LintGroup
PointerAuthConfig
PointerAuthSchema
Session
Represents the data associated with a compilation session for a single crate.
StableCrateId
A StableCrateId is a 64-bit hash of a crate name, together with all -Cmetadata arguments, and some other data. It is to CrateNum what DefPathHash is to DefId. It is stable across compilation sessions.

Enumsยง

CodegenUnits
CtfeBacktrace
The behavior of the CTFE engine when an error occurs with regards to backtraces.
PointerAuthARM8_3Key
Hardware pointer-signing keys in ARM8.3. These values are the same as used in ptrauth.h.
PointerAuthAddressDiscriminator
Types of address discrimination.
PointerAuthDiscrimination
Forms of extra discrimination.

Traitsยง

DynLintStore

Functionsยง

build_early_session
build_session
default_emitter ๐Ÿ”’
generate_proc_macro_decls_symbol
mk_emitter ๐Ÿ”’
validate_commandline_args_with_session_available ๐Ÿ”’
Validate command line arguments with a Session.