pub struct Queries<'tcx> {
Show 14 fields compiler: &'tcx Compiler, gcx: OnceCell<GlobalCtxt<'tcx>>, queries: OnceCell<TcxQueries<'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<(Lrc<Crate>, Rc<RefCell<BoxedResolver>>, Lrc<LintStore>)>, dep_graph: Query<DepGraph>, prepare_outputs: Query<OutputFilenames>, global_ctxt: Query<QueryContext<'tcx>>, ongoing_codegen: Query<Box<dyn Any>>,
}

Fields

compiler: &'tcx Compilergcx: OnceCell<GlobalCtxt<'tcx>>queries: OnceCell<TcxQueries<'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<(Lrc<Crate>, Rc<RefCell<BoxedResolver>>, Lrc<LintStore>)>dep_graph: Query<DepGraph>prepare_outputs: Query<OutputFilenames>global_ctxt: Query<QueryContext<'tcx>>ongoing_codegen: Query<Box<dyn Any>>

Implementations

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Layout

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 32632 bytes