Function rustc_query_impl::make_query::upstream_drop_glue_for[][src]

pub fn upstream_drop_glue_for<'tcx>(
    tcx: QueryCtxt<'tcx>,
    key: upstream_drop_glue_for<'tcx>
) -> QueryStackFrame
Expand description

Returns the upstream crate that exports drop-glue for the given type (substs is expected to be a single-item list containing the type one wants drop-glue for).

This is a subset of upstream_monomorphizations_for in order to increase dep-tracking granularity. Otherwise adding or removing any type with drop-glue in any upstream crate would invalidate all functions calling drop-glue of an upstream type.

You likely want to call Instance::upstream_monomorphization() instead of invoking this query directly.

NOTE: This query could easily be extended to also support other common functions that have are large set of monomorphizations (like Clone::clone for example).