1
Fork 0

Add a dep kind for use of the anon node with zero dependencies

This commit is contained in:
John Kåre Alsaker 2025-04-02 07:35:05 +02:00
parent 70dab5a27c
commit 927ad1659a
5 changed files with 21 additions and 5 deletions

View file

@ -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,