about summary refs log tree commit diff
path: root/src/librustc/util/common.rs
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2018-12-03 01:14:35 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2019-03-13 00:03:13 +0100
commit3936aff2169a1f61633de2bc475face3a2682efb (patch)
tree0acd56359a94980bef3519e0d39123e8d0d4a8af /src/librustc/util/common.rs
parent48757a70a382afe27d5469fdcfbe5d434c9d4097 (diff)
downloadrust-3936aff2169a1f61633de2bc475face3a2682efb.tar.gz
rust-3936aff2169a1f61633de2bc475face3a2682efb.zip
Use derive macro for HashStable
Diffstat (limited to 'src/librustc/util/common.rs')
-rw-r--r--src/librustc/util/common.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc/util/common.rs b/src/librustc/util/common.rs
index dd635e5c946..5622fe43436 100644
--- a/src/librustc/util/common.rs
+++ b/src/librustc/util/common.rs
@@ -12,6 +12,7 @@ use std::time::{Duration, Instant};
 
 use std::sync::mpsc::{Sender};
 use syntax_pos::{SpanData};
+use rustc_macros::HashStable;
 use crate::ty::TyCtxt;
 use crate::dep_graph::{DepNode};
 use lazy_static;
@@ -22,7 +23,7 @@ pub const FN_OUTPUT_NAME: &str = "Output";
 
 // Useful type to use with `Result<>` indicate that an error has already
 // been reported to the user, so no need to continue checking.
-#[derive(Clone, Copy, Debug, RustcEncodable, RustcDecodable)]
+#[derive(Clone, Copy, Debug, RustcEncodable, RustcDecodable, HashStable)]
 pub struct ErrorReported;
 
 thread_local!(static TIME_DEPTH: Cell<usize> = Cell::new(0));