Skip to main content

Crate rustc_public_bridge

Crate rustc_public_bridge 

Source
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_internalDeprecated

StructsΒ§

IndexMap
Similar to rustc’s FxIndexMap, IndexMap with extra safety features added.
Tables

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

FunctionsΒ§

filter_def_ids πŸ”’
Iterate over the definitions of the given crate.

Trait AliasesΒ§

Cacheable
Trait alias for types that can be cached in Tables.