diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2025-03-18 22:26:44 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2025-03-19 20:12:37 +0100 |
| commit | 68fd771bc1f186bfa7e825d8a87ac8f06a6efced (patch) | |
| tree | 73838df3071dbb5d8db54fc689b8719c80413ae1 /compiler/rustc_query_impl | |
| parent | f5dc674bf898cbd1ee8e206a55450b0b2132c0c0 (diff) | |
| download | rust-68fd771bc1f186bfa7e825d8a87ac8f06a6efced.tar.gz rust-68fd771bc1f186bfa7e825d8a87ac8f06a6efced.zip | |
Pass in dep kind names to the duplicate dep node check
Diffstat (limited to 'compiler/rustc_query_impl')
| -rw-r--r-- | compiler/rustc_query_impl/src/plumbing.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs index 2b8457ace8e..6fc7f023cf0 100644 --- a/compiler/rustc_query_impl/src/plumbing.rs +++ b/compiler/rustc_query_impl/src/plumbing.rs @@ -863,5 +863,9 @@ macro_rules! define_queries { pub fn query_callbacks<'tcx>(arena: &'tcx Arena<'tcx>) -> &'tcx [DepKindStruct<'tcx>] { arena.alloc_from_iter(rustc_middle::make_dep_kind_array!(query_callbacks)) } + + pub fn dep_kind_names() -> Vec<&'static str> { + rustc_middle::make_dep_kind_name_array!(query_callbacks) + } } } |
