Struct rustc::ty::query::queries::type_of [−][src]
pub struct type_of<'tcx> { data: PhantomData<&'tcx ()>, }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Fields
data: PhantomData<&'tcx ()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods
impl<'a, 'tcx, 'lcx> type_of<'tcx>
[src]
impl<'a, 'tcx, 'lcx> type_of<'tcx>
pub fn ensure(tcx: TyCtxt<'a, 'tcx, 'lcx>, key: DefId)
[src]
pub fn ensure(tcx: TyCtxt<'a, 'tcx, 'lcx>, key: DefId)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Ensure that either this query has all green inputs or been executed. Executing query::ensure(D) is considered a read of the dep-node D.
This function is particularly useful when executing passes for their side-effects -- e.g., in order to report errors for erroneous programs.
Note: The optimization is only available during incr. comp.
Trait Implementations
impl<'tcx> QueryDescription<'tcx> for type_of<'tcx>
[src]
impl<'tcx> QueryDescription<'tcx> for type_of<'tcx>
fn cache_on_disk(def_id: Self::Key) -> bool
[src]
fn cache_on_disk(def_id: Self::Key) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn try_load_from_disk<'a>(
tcx: TyCtxt<'a, 'tcx, 'tcx>,
id: SerializedDepNodeIndex
) -> Option<Self::Value>
[src]
fn try_load_from_disk<'a>(
tcx: TyCtxt<'a, 'tcx, 'tcx>,
id: SerializedDepNodeIndex
) -> Option<Self::Value>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn describe(tcx: TyCtxt, key: Self::Key) -> String
[src]
fn describe(tcx: TyCtxt, key: Self::Key) -> String
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl<'tcx> QueryConfig<'tcx> for type_of<'tcx>
[src]
impl<'tcx> QueryConfig<'tcx> for type_of<'tcx>
type Key = DefId
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
type Value = Ty<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
const NAME: &'static str
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
NAME: &'static str = "type_of"
impl<'tcx> QueryAccessors<'tcx> for type_of<'tcx>
[src]
impl<'tcx> QueryAccessors<'tcx> for type_of<'tcx>
fn query(key: Self::Key) -> Query<'tcx>
[src]
fn query(key: Self::Key) -> Query<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn query_cache<'a>(
tcx: TyCtxt<'a, 'tcx, '_>
) -> &'a Lock<QueryCache<'tcx, Self>>
[src]
fn query_cache<'a>(
tcx: TyCtxt<'a, 'tcx, '_>
) -> &'a Lock<QueryCache<'tcx, Self>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn to_dep_node(tcx: TyCtxt<'_, 'tcx, '_>, key: &Self::Key) -> DepNode
[src]
fn to_dep_node(tcx: TyCtxt<'_, 'tcx, '_>, key: &Self::Key) -> DepNode
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn compute(tcx: TyCtxt<'_, 'tcx, '_>, key: Self::Key) -> Self::Value
[src]
fn compute(tcx: TyCtxt<'_, 'tcx, '_>, key: Self::Key) -> Self::Value
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn handle_cycle_error(tcx: TyCtxt<'_, 'tcx, '_>) -> Self::Value
[src]
fn handle_cycle_error(tcx: TyCtxt<'_, 'tcx, '_>) -> Self::Value
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?