1
Fork 0

Make allocator_kind a query.

This commit is contained in:
Camille GILLOT 2021-05-11 22:05:54 +02:00
parent 9543636cd6
commit 6a371d2c89
7 changed files with 10 additions and 9 deletions

View file

@ -1416,6 +1416,10 @@ rustc_queries! {
eval_always
desc { "check whether crate {} is a private dependency", c }
}
query allocator_kind(_: ()) -> Option<AllocatorKind> {
eval_always
desc { "allocator kind for the current crate" }
}
query upvars_mentioned(def_id: DefId) -> Option<&'tcx FxIndexMap<hir::HirId, hir::Upvar>> {
desc { |tcx| "collecting upvars mentioned in `{}`", tcx.def_path_str(def_id) }