about summary refs log tree commit diff
path: root/compiler/rustc_query_system
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2020-10-27 18:36:11 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2021-01-08 17:48:02 +0100
commit016ea6b319e12df6ed568a147f9e5f06ceccbfff (patch)
tree13a3dcaca1ee589d98201b49e000512ce5f477d1 /compiler/rustc_query_system
parentd1220fdedf030049a22a3ae430e15fda2a3f4477 (diff)
downloadrust-016ea6b319e12df6ed568a147f9e5f06ceccbfff.tar.gz
rust-016ea6b319e12df6ed568a147f9e5f06ceccbfff.zip
Use a side-table of consts instead of matching on the DepKind enum.
Diffstat (limited to 'compiler/rustc_query_system')
-rw-r--r--compiler/rustc_query_system/src/dep_graph/mod.rs2
1 files changed, 1 insertions, 1 deletions
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.