Skip to main content

Crate rustc_interface

Crate rustc_interface 

Source

Re-exportsยง

pub use interface::Config;
pub use interface::run_compiler;
pub use passes::DEFAULT_QUERY_PROVIDERS;
pub use passes::create_and_enter_global_ctxt;
pub use passes::parse;

Modulesยง

callbacks ๐Ÿ”’
Throughout the compiler tree, there are several places which want to have access to state or queries while being inside crates that are dependencies of rustc_middle. To facilitate this, we have the rustc_data_structures::AtomicRef type, which allows us to setup a global static which can then be set in this file at program startup.
errors
interface
limits ๐Ÿ”’
Registering limits:
passes
proc_macro_decls ๐Ÿ”’
queries ๐Ÿ”’
util

Structsยง

Linker

Functionsยง

setup_callbacks
Sets up the callbacks in prior crates which we want to refer to the TyCtxt in.