[][src]Struct rustc_interface::queries::Queries

pub struct Queries<'tcx> {
    compiler: &'tcx Compiler,
    gcx: OnceCell<GlobalCtxt<'tcx>>,
    arena: WorkerLocal<Arena<'tcx>>,
    hir_arena: WorkerLocal<Arena<'tcx>>,
    dep_graph_future: Query<Option<DepGraphFuture>>,
    parse: Query<Crate>,
    crate_name: Query<String>,
    register_plugins: Query<(Crate, Lrc<LintStore>)>,
    expansion: Query<(Crate, Steal<Rc<RefCell<BoxedResolver>>>, Lrc<LintStore>)>,
    dep_graph: Query<DepGraph>,
    lower_to_hir: Query<(&'tcx Crate<'tcx>, Steal<ResolverOutputs>)>,
    prepare_outputs: Query<OutputFilenames>,
    global_ctxt: Query<QueryContext<'tcx>>,
    ongoing_codegen: Query<Box<dyn Any>>,


compiler: &'tcx Compilergcx: OnceCell<GlobalCtxt<'tcx>>arena: WorkerLocal<Arena<'tcx>>hir_arena: WorkerLocal<Arena<'tcx>>dep_graph_future: Query<Option<DepGraphFuture>>parse: Query<Crate>crate_name: Query<String>register_plugins: Query<(Crate, Lrc<LintStore>)>expansion: Query<(Crate, Steal<Rc<RefCell<BoxedResolver>>>, Lrc<LintStore>)>dep_graph: Query<DepGraph>lower_to_hir: Query<(&'tcx Crate<'tcx>, Steal<ResolverOutputs>)>prepare_outputs: Query<OutputFilenames>global_ctxt: Query<QueryContext<'tcx>>ongoing_codegen: Query<Box<dyn Any>>


impl<'tcx> Queries<'tcx>[src]

pub fn new(compiler: &'tcx Compiler) -> Queries<'tcx>[src]

fn session(&self) -> &Lrc<Session>[src]

fn codegen_backend(&self) -> &Lrc<Box<dyn CodegenBackend>>[src]

pub fn dep_graph_future(&self) -> Result<&Query<Option<DepGraphFuture>>>[src]

pub fn parse(&self) -> Result<&Query<Crate>>[src]

pub fn register_plugins(&self) -> Result<&Query<(Crate, Lrc<LintStore>)>>[src]

pub fn crate_name(&self) -> Result<&Query<String>>[src]

pub fn expansion(
) -> Result<&Query<(Crate, Steal<Rc<RefCell<BoxedResolver>>>, Lrc<LintStore>)>>

pub fn dep_graph(&self) -> Result<&Query<DepGraph>>[src]

pub fn lower_to_hir(
    &'tcx self
) -> Result<&Query<(&'tcx Crate<'tcx>, Steal<ResolverOutputs>)>>

pub fn prepare_outputs(&self) -> Result<&Query<OutputFilenames>>[src]

pub fn global_ctxt(&'tcx self) -> Result<&Query<QueryContext<'tcx>>>[src]

pub fn ongoing_codegen(&'tcx self) -> Result<&Query<Box<dyn Any>>>[src]

fn check_for_rustc_errors_attr(tcx: TyCtxt<'_>)[src]

Check for the #[rustc_error] annotation, which forces an error in codegen. This is used to write compile-fail tests that actually test that compilation succeeds without reporting an error.

pub fn linker(&'tcx self) -> Result<Linker>[src]

Auto Trait Implementations

impl<'tcx> !RefUnwindSafe for Queries<'tcx>

impl<'tcx> !Send for Queries<'tcx>

impl<'tcx> !Sync for Queries<'tcx>

impl<'tcx> Unpin for Queries<'tcx>

impl<'tcx> !UnwindSafe for Queries<'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.