Crate rustc_ap_rustc_session[][src]

Re-exports

pub use rustc_lint_defs as lint;
pub use getopts;

Modules

cgu_reuse_tracker

Some facilities for tracking how codegen-units are reused during incremental compilation. This is used for incremental compilation tests and debug output.

config

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

filesearch
output

Related to out filenames of compilation (e.g. save analysis, binaries).

parse

Contains ParseSess which holds state living beyond what one Parser might. It also serves as an input to the parser itself.

search_paths
utils

Macros

declare_lint

Declares a static item of type &'static Lint.

declare_lint_pass

Declares a type named $name which implements LintPass. To the right of => a comma separated list of Lint statics is given.

declare_tool_lint
impl_lint_pass

Implements LintPass for $ty with the given list of Lint statics.

Structs

Attribute

Metadata associated with an item.

FieldInfo
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.

StableCrateId

A StableCrateId is a 64 bit hash of the crate name combined with all -Cmetadata arguments. It is to CrateNum what DefPathHash is to DefId. It is stable across compilation sessions.

VariantInfo

Enums

CtfeBacktrace

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

DataTypeKind
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.

SizeKind

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
early_error
early_error_no_abort
early_warn