about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2025-04-02 07:35:05 +0200
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2025-04-02 07:35:05 +0200
commit927ad1659ab4c918a4f41aef71cc8847a5198326 (patch)
tree031d66928d25ed9fb208bcf0b8138efdcec4138d /compiler/rustc_query_impl/src
parent70dab5a27c03a5637cc1d4ba36a5139760d25e38 (diff)
downloadrust-927ad1659ab4c918a4f41aef71cc8847a5198326.tar.gz
rust-927ad1659ab4c918a4f41aef71cc8847a5198326.zip
Add a dep kind for use of the anon node with zero dependencies
Diffstat (limited to 'compiler/rustc_query_impl/src')
-rw-r--r--compiler/rustc_query_impl/src/plumbing.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs
index 3238c7a0912..19ccc5587d6 100644
--- a/compiler/rustc_query_impl/src/plumbing.rs
+++ b/compiler/rustc_query_impl/src/plumbing.rs
@@ -870,6 +870,17 @@ macro_rules! define_queries {
                 }
             }
 
+            pub(crate) fn AnonZeroDeps<'tcx>() -> DepKindStruct<'tcx> {
+                DepKindStruct {
+                    is_anon: true,
+                    is_eval_always: false,
+                    fingerprint_style: FingerprintStyle::Opaque,
+                    force_from_dep_node: Some(|_, _, _| bug!("cannot force an anon node")),
+                    try_load_from_on_disk_cache: None,
+                    name: &"AnonZeroDeps",
+                }
+            }
+
             pub(crate) fn TraitSelect<'tcx>() -> DepKindStruct<'tcx> {
                 DepKindStruct {
                     is_anon: true,