Re-exports§
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;pub use rustc_lint_defs as lint;pub use getopts;
Modules§
- code_
stats - config
- Contains infrastructure for configuring the compiler, including parsing command-line options.
- cstore
- the rustc crate store interface. This also includes types that are mostly used as a part of that interface, but these should probably get a better home if someone can find one.
- errors
- filesearch
- A module for searching for libraries
- options 🔒
- output
- Related to out filenames of compilation (e.g. binaries).
- parse
- Contains
ParseSesswhich holds state living beyond what oneParsermight. It also serves as an input to the parser itself. - search_
paths - session 🔒
- utils
Macros§
- declare_
lint - Declares a static item of type
&'static Lint. - declare_
lint_ pass - Declares a type named
$namewhich implementsLintPass. To the right of=>a comma separated list ofLintstatics is given. - declare_
tool_ lint - impl_
lint_ pass - Implements
LintPass for $tywith the given list ofLintstatics.
Structs§
- CompilerIO
- Early
Diag Ctxt - A wrapper around an
DiagCtxtthat is used for early error emissions. - Limits
- Lint
Group - Session
- Represents the data associated with a compilation session for a single crate.
- Stable
Crate Id - A
StableCrateIdis a 64-bit hash of a crate name, together with all-Cmetadataarguments, and some other data. It is toCrateNumwhatDefPathHashis toDefId. It is stable across compilation sessions.
Enums§
- Codegen
Units - Ctfe
Backtrace - The behavior of the CTFE engine when an error occurs with regards to backtraces.
Statics§
- DEFAULT_
LOCALE_ RESOURCE - Raw content of Fluent resource for this crate, generated by
fluent_messagesmacro, imported byrustc_driverto include all crates’ resources in one bundle.
Traits§
- DynLint
Store - Hash
Stable Context - Requirements for a
StableHashingContextto be used in this crate. This is a hack to allow using theHashStable_Genericderive macro instead of implementing everything inrustc_middle. - Remap
File Name Ext