/// Get a map with the variance of every item; use `item_variance`
/// instead.
- query crate_variances(_: CrateNum) -> Lrc<ty::CrateVariancesMap> {
+ query crate_variances(_: CrateNum) -> Lrc<ty::CrateVariancesMap<'tcx>> {
desc { "computing the variances for items in this crate" }
}
/// Maps from def-id of a type or region parameter to its
/// (inferred) variance.
- query variances_of(_: DefId) -> Lrc<Vec<ty::Variance>> {}
+ query variances_of(_: DefId) -> &'tcx [ty::Variance] {}
}
TypeChecking {
cache { true }
}
- query describe_def(_: DefId) -> Option<Def> {}
+ query def_kind(_: DefId) -> Option<DefKind> {}
query def_span(_: DefId) -> Span {
// FIXME(mw): DefSpans are not really inputs since they are derived from
// HIR. But at the moment HIR hashing still contains some hacks that allow