diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-11 22:05:54 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-30 19:58:01 +0200 |
| commit | ee94fbb607957ff842778ebec5e8e621145c60b3 (patch) | |
| tree | deda1971dd41569d6ca75b3567fa4b1f46a262c3 /compiler/rustc_middle/src/query | |
| parent | e1e69495582a6073717c1f68ee84084fbbeefb0a (diff) | |
| download | rust-ee94fbb607957ff842778ebec5e8e621145c60b3.tar.gz rust-ee94fbb607957ff842778ebec5e8e621145c60b3.zip | |
Make allocator_kind a query.
Diffstat (limited to 'compiler/rustc_middle/src/query')
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index d8a18b5a2d3..28a03155b27 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -1412,6 +1412,9 @@ rustc_queries! { eval_always desc { "generating a postorder list of CrateNums" } } + query allocator_kind(_: ()) -> Option<AllocatorKind> { + 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) } |
