Skip to content

Commit a92b1a7

Browse files
committed
make DepNode PartialOrd
1 parent 0e97240 commit a92b1a7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/librustc/dep_graph/dep_node.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ macro_rules! try_opt {
2020
)
2121
}
2222

23-
#[derive(Clone, Debug, PartialEq, Eq, Hash, RustcEncodable, RustcDecodable)]
23+
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, RustcEncodable, RustcDecodable)]
2424
pub enum DepNode<D: Clone + Debug> {
2525
// The `D` type is "how definitions are identified".
2626
// During compilation, it is always `DefId`, but when serializing
@@ -245,6 +245,6 @@ impl<D: Clone + Debug> DepNode<D> {
245245
/// some independent path or string that persists between runs without
246246
/// the need to be mapped or unmapped. (This ensures we can serialize
247247
/// them even in the absence of a tcx.)
248-
#[derive(Clone, Debug, PartialEq, Eq, Hash, RustcEncodable, RustcDecodable)]
248+
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, RustcEncodable, RustcDecodable)]
249249
pub struct WorkProductId(pub String);
250250

src/librustc_incremental/persist/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ mod directory;
1717
mod dirty_clean;
1818
mod hash;
1919
mod load;
20+
mod preds;
2021
mod save;
2122
mod util;
2223
mod work_product;

0 commit comments

Comments
 (0)