Use a dedicated DepKind for the forever-red node.
This commit is contained in:
parent
c168fba268
commit
e912c8dfe0
5 changed files with 23 additions and 6 deletions
|
@ -23,6 +23,7 @@ pub type EdgeFilter = rustc_query_system::dep_graph::debug::EdgeFilter<DepKind>;
|
|||
|
||||
impl rustc_query_system::dep_graph::DepKind for DepKind {
|
||||
const NULL: Self = DepKind::Null;
|
||||
const RED: Self = DepKind::Red;
|
||||
|
||||
fn debug_node(node: &DepNode, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "{:?}(", node.kind)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue