diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-03-30 00:17:41 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-04-10 13:36:06 +0200 |
| commit | 69d818333755d4b836a28a4498f2caad71c2d014 (patch) | |
| tree | 14e247f2edb8bb6c657e18d5d20b92610a360c0f /compiler/rustc_middle/src/query | |
| parent | db03a2deb090d5c24f15ef30cf4e5ccb13690b9d (diff) | |
| download | rust-69d818333755d4b836a28a4498f2caad71c2d014.tar.gz rust-69d818333755d4b836a28a4498f2caad71c2d014.zip | |
Store LocalDefId in is_late_bound_map.
This allows to avoid looking at HIR from borrowck.
Diffstat (limited to 'compiler/rustc_middle/src/query')
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index bbe1d367b77..f38ade1076e 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -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 |
