Skip to content

Commit cac02f4

Browse files
committed
Separate computation of object lifetime default.
1 parent 75f0271 commit cac02f4

File tree

7 files changed

+695
-355
lines changed

7 files changed

+695
-355
lines changed

compiler/rustc_middle/src/query/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,6 +1594,11 @@ rustc_queries! {
15941594
query object_lifetime_defaults(_: DefId) -> Option<&'tcx [ObjectLifetimeDefault]> {
15951595
desc { "looking up lifetime defaults for a region on an item" }
15961596
}
1597+
/// Fetch the lifetimes for all the trait objects in an item-like.
1598+
query object_lifetime_map(_: LocalDefId) -> FxHashMap<ItemLocalId, Region> {
1599+
storage(ArenaCacheSelector<'tcx>)
1600+
desc { "looking up lifetime defaults for a region on an item" }
1601+
}
15971602
query late_bound_vars_map(_: LocalDefId)
15981603
-> Option<&'tcx FxHashMap<ItemLocalId, Vec<ty::BoundVariableKind>>> {
15991604
desc { "looking up late bound vars" }

0 commit comments

Comments
 (0)