Make allocator_kind a query.
This commit is contained in:
parent
9543636cd6
commit
6a371d2c89
7 changed files with 10 additions and 9 deletions
|
@ -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) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue