From 016ea6b319e12df6ed568a147f9e5f06ceccbfff Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Tue, 27 Oct 2020 18:36:11 +0100 Subject: Use a side-table of consts instead of matching on the DepKind enum. --- compiler/rustc_query_system/src/dep_graph/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_query_system') diff --git a/compiler/rustc_query_system/src/dep_graph/mod.rs b/compiler/rustc_query_system/src/dep_graph/mod.rs index da0b5aad6c8..b1c901633a7 100644 --- a/compiler/rustc_query_system/src/dep_graph/mod.rs +++ b/compiler/rustc_query_system/src/dep_graph/mod.rs @@ -61,7 +61,7 @@ pub trait DepContext: Copy { } /// Describe the different families of dependency nodes. -pub trait DepKind: Copy + fmt::Debug + Eq + Ord + Hash { +pub trait DepKind: Copy + fmt::Debug + Eq + Hash { const NULL: Self; /// Return whether this kind always require evaluation. -- cgit 1.4.1-3-g733a5