diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2025-04-02 07:35:05 +0200 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2025-04-02 07:35:05 +0200 |
| commit | 927ad1659ab4c918a4f41aef71cc8847a5198326 (patch) | |
| tree | 031d66928d25ed9fb208bcf0b8138efdcec4138d /compiler/rustc_query_impl/src | |
| parent | 70dab5a27c03a5637cc1d4ba36a5139760d25e38 (diff) | |
| download | rust-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.rs | 11 |
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, |
