diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2016-08-05 20:00:20 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2016-08-09 08:26:06 -0400 |
| commit | a92b1a7981801266eb5075c07dc2331b08c0693c (patch) | |
| tree | d34485a8a30322ba6db57d1455e057979442dc2b | |
| parent | 0e97240f984106ae9f21886c690d55220a2ee932 (diff) | |
| download | rust-a92b1a7981801266eb5075c07dc2331b08c0693c.tar.gz rust-a92b1a7981801266eb5075c07dc2331b08c0693c.zip | |
make DepNode PartialOrd
| -rw-r--r-- | src/librustc/dep_graph/dep_node.rs | 4 | ||||
| -rw-r--r-- | src/librustc_incremental/persist/mod.rs | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/librustc/dep_graph/dep_node.rs b/src/librustc/dep_graph/dep_node.rs index 907c4ec774a..46787f38320 100644 --- a/src/librustc/dep_graph/dep_node.rs +++ b/src/librustc/dep_graph/dep_node.rs @@ -20,7 +20,7 @@ macro_rules! try_opt { ) } -#[derive(Clone, Debug, PartialEq, Eq, Hash, RustcEncodable, RustcDecodable)] +#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, RustcEncodable, RustcDecodable)] pub enum DepNode<D: Clone + Debug> { // The `D` type is "how definitions are identified". // During compilation, it is always `DefId`, but when serializing @@ -245,6 +245,6 @@ impl<D: Clone + Debug> DepNode<D> { /// some independent path or string that persists between runs without /// the need to be mapped or unmapped. (This ensures we can serialize /// them even in the absence of a tcx.) -#[derive(Clone, Debug, PartialEq, Eq, Hash, RustcEncodable, RustcDecodable)] +#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, RustcEncodable, RustcDecodable)] pub struct WorkProductId(pub String); diff --git a/src/librustc_incremental/persist/mod.rs b/src/librustc_incremental/persist/mod.rs index 1157f494ce6..4a042497e04 100644 --- a/src/librustc_incremental/persist/mod.rs +++ b/src/librustc_incremental/persist/mod.rs @@ -17,6 +17,7 @@ mod directory; mod dirty_clean; mod hash; mod load; +mod preds; mod save; mod util; mod work_product; |
