Struct rustc::ty::maps::queries::maybe_unused_extern_crates [−][src]
pub struct maybe_unused_extern_crates<'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> maybe_unused_extern_crates<'tcx>[src]
impl<'a, 'tcx, 'lcx> maybe_unused_extern_crates<'tcx>pub fn ensure(tcx: TyCtxt<'a, 'tcx, 'lcx>, key: CrateNum)[src]
pub fn ensure(tcx: TyCtxt<'a, 'tcx, 'lcx>, key: CrateNum)🔬 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 maybe_unused_extern_crates<'tcx>[src]
impl<'tcx> QueryDescription<'tcx> for maybe_unused_extern_crates<'tcx>fn describe(_tcx: TyCtxt, _: CrateNum) -> String[src]
fn describe(_tcx: TyCtxt, _: CrateNum) -> 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?
fn cache_on_disk(_: Self::Key) -> bool[src]
fn cache_on_disk(_: 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(
_: TyCtxt<'_, 'tcx, 'tcx>,
_: SerializedDepNodeIndex
) -> Option<Self::Value>[src]
fn try_load_from_disk(
_: TyCtxt<'_, 'tcx, 'tcx>,
_: 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?
impl<'tcx> QueryConfig<'tcx> for maybe_unused_extern_crates<'tcx>[src]
impl<'tcx> QueryConfig<'tcx> for maybe_unused_extern_crates<'tcx>type Key = CrateNum
🔬 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 = Lrc<Vec<(DefId, Span)>>
🔬 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 = "maybe_unused_extern_crates"
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_map<'a>(tcx: TyCtxt<'a, 'tcx, '_>) -> &'a Lock<QueryMap<'tcx, Self>>[src]
fn query_map<'a>(tcx: TyCtxt<'a, 'tcx, '_>) -> &'a Lock<QueryMap<'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?
Auto Trait Implementations
impl<'tcx> Send for maybe_unused_extern_crates<'tcx>
impl<'tcx> Send for maybe_unused_extern_crates<'tcx>impl<'tcx> Sync for maybe_unused_extern_crates<'tcx>
impl<'tcx> Sync for maybe_unused_extern_crates<'tcx>