Store LocalDefId in is_late_bound_map.

This allows to avoid looking at HIR from borrowck.
This commit is contained in:
Camille GILLOT 2022-03-30 00:17:41 +02:00
parent db03a2deb0
commit 69d8183337
6 changed files with 42 additions and 28 deletions

View file

@ -1502,8 +1502,7 @@ rustc_queries! {
Option<&'tcx FxHashMap<ItemLocalId, Region>> {
desc { "looking up a named region" }
}
query is_late_bound_map(_: LocalDefId) ->
Option<(LocalDefId, &'tcx FxHashSet<ItemLocalId>)> {
query is_late_bound_map(_: LocalDefId) -> Option<(LocalDefId, &'tcx FxHashSet<LocalDefId>)> {
desc { "testing if a region is late bound" }
}
/// For a given item (like a struct), gets the default lifetimes to be used