diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-05-03 22:04:49 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-07-06 23:20:12 +0200 |
| commit | e912c8dfe0f74f41c9b3dae1a4e1900f3dd9d0e6 (patch) | |
| tree | b99eccd569057bf9b6ff17cf33605d4e0125d52f /compiler/rustc_query_impl/src | |
| parent | c168fba268082c1a9203550ac72d12ece143814f (diff) | |
| download | rust-e912c8dfe0f74f41c9b3dae1a4e1900f3dd9d0e6.tar.gz rust-e912c8dfe0f74f41c9b3dae1a4e1900f3dd9d0e6.zip | |
Use a dedicated DepKind for the forever-red node.
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 d0fef364eaf..333dc5aa668 100644 --- a/compiler/rustc_query_impl/src/plumbing.rs +++ b/compiler/rustc_query_impl/src/plumbing.rs @@ -377,6 +377,17 @@ macro_rules! define_queries { } } + // We use this for the forever-red node. + pub fn Red() -> DepKindStruct { + DepKindStruct { + is_anon: false, + is_eval_always: false, + fingerprint_style: FingerprintStyle::Unit, + force_from_dep_node: Some(|_, dep_node| bug!("force_from_dep_node: encountered {:?}", dep_node)), + try_load_from_on_disk_cache: None, + } + } + pub fn TraitSelect() -> DepKindStruct { DepKindStruct { is_anon: true, |
