Expand description
Crate that implements what will become the rustc side of rustc_public.
This crate serves as a proxy for making calls to rustc queries.
This crate is not intended to be invoked directly by users.
This crate is the public API of rustc that will be invoked by the rustc_public crate.
For more information see https://github.com/rust-lang/rustc_public
Β§Note
This API is still completely unstable and subject to change.
Re-exportsΒ§
pub(crate) use context::CompilerCtxt;πpub(crate) use std::fmt::Debug;πpub(crate) use std::fmt::Debug;πpub(crate) use std::hash::Hash;πpub(crate) use std::hash::Hash;πpub(crate) use std::ops::Index;πpub(crate) use fx;πpub(crate) use FxIndexMap;πpub(crate) use rustc_middle::mir;πpub(crate) use rustc_middle::mir::interpret::AllocId;πpub(crate) use ty;πpub(crate) use Ty;πpub(crate) use TyCtxt;πpub(crate) use rustc_span::Span;πpub(crate) use CrateNum;πpub(crate) use DefId;πpub(crate) use LOCAL_CRATE;πpub(crate) use bridge::*;π
ModulesΒ§
- alloc
- Internal memory allocator implementation for rustc_public.
- bridge
- Defines a set of traits that is used for abstracting rustc_publicβs components that are needed in rustc_public_bridge.
- builder π
- Logic required to produce a monomorphic body.
- context
- Implementation of CompilerCtxt.
- rustc_
internal Deprecated
StructsΒ§
TraitsΒ§
- Bridge
- A trait defining types that are used to emulate rustc_public components, which is really useful when programming in rustc_public-agnostic settings.
- Indexed
Val
FunctionsΒ§
- filter_
def_ πids - Iterate over the definitions of the given crate.