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
|
@ -85,8 +85,12 @@ impl FingerprintStyle {
|
|||
|
||||
/// Describe the different families of dependency nodes.
|
||||
pub trait DepKind: Copy + fmt::Debug + Eq + Hash + Send + Encodable<FileEncoder> + 'static {
|
||||
/// DepKind to use when incr. comp. is turned off.
|
||||
const NULL: Self;
|
||||
|
||||
/// DepKind to use to create the initial forever-red node.
|
||||
const RED: Self;
|
||||
|
||||
/// Implementation of `std::fmt::Debug` for `DepNode`.
|
||||
fn debug_node(node: &DepNode<Self>, f: &mut fmt::Formatter<'_>) -> fmt::Result;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue