[][src]Crate rustc

🔬 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?

The "main crate" of the Rust compiler. This crate contains common type definitions that are used by the other crates in the rustc "family". Some prominent examples (note that each of these modules has their own README with further details).

For more information about how rustc works, see the rustc guide.

Note

This API is completely unstable and subject to change.

Modules

cfg [
Experimental
]

Module that constructs a control-flow graph representing an item. Uses Graph as the underlying representation.

dep_graph [
Experimental
]
diagnostics [
Experimental
]
hir [
Experimental
]
ich [
Experimental
]

ICH - Incremental Compilation Hash

infer [
Experimental
]

See the Book for more information.

lint [
Experimental
]

Lints, aka compiler warnings.

macros [
Experimental
]
middle [
Experimental
]
mir [
Experimental
]

MIR datatypes and passes. See the rustc guide for more info.

rustc [
Experimental
]
session [
Experimental
]
traits [
Experimental
]

Trait Resolution. See rustc guide for more info on how this works.

ty [
Experimental
]
util [
Experimental
]

Macros

BraceStructLiftImpl [
Experimental
]
BraceStructTypeFoldableImpl [
Experimental
]
CloneLiftImpls [
Experimental
]
CloneTypeFoldableAndLiftImpls [
Experimental
]
CloneTypeFoldableImpls [
Experimental
]

Used for types that are Copy and which do not care arena allocated data (i.e., don't need to be folded).

EnumLiftImpl [
Experimental
]
EnumTypeFoldableImpl [
Experimental
]
TupleStructTypeFoldableImpl [
Experimental
]
__impl_decoder_methods [
Experimental
]
__impl_stable_hash_field [
Experimental
]
bug [
Experimental
]
declare_combined_late_lint_pass [
Experimental
]
declare_lint [
Experimental
]

Declare a static item of type &'static Lint.

declare_tool_lint [
Experimental
]
err [
Experimental
]
expand_combined_late_lint_pass_method [
Experimental
]
expand_combined_late_lint_pass_methods [
Experimental
]
impl_stable_hash_for [
Experimental
]
impl_stable_hash_for_spanned [
Experimental
]
implement_ty_decoder [
Experimental
]
late_lint_methods [
Experimental
]
lint_array [
Experimental
]

Declare a static LintArray and return it as an expression.

span_bug [
Experimental
]

Constants

DIAGNOSTICS [
Experimental
]