[−][src]Module rustc_session::session

Re-exports

pub use crate::code_stats::DataTypeKind;
pub use crate::code_stats::FieldInfo;
pub use crate::code_stats::SizeKind;
pub use crate::code_stats::VariantInfo;

Structs

Attribute

Metadata associated with an item.

CrateDisambiguator

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.

Limit

New-type wrapper around usize for representing limits. Ensures that comparisons against limits are consistent throughout the compiler.

MarkedAttrs
OptimizationFuel
PerfStats
Session

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

Enums

CtfeBacktrace

The behavior of the CTFE engine when an error occurs with regards to backtraces.

DiagnosticBuilderMethod

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

DiagnosticMessageId

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

DiagnosticOutput
IncrCompSession

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

Traits

SessionDiagnostic

Trait implemented by error types. This should not be implemented manually. Instead, use #[derive(SessionDiagnostic)] -- see rustc_macros::SessionDiagnostic.

SessionLintStore

Functions

build_session
default_emitter
early_error
early_warn
validate_commandline_args_with_session_available