diff options
Diffstat (limited to 'src/librustc/util/common.rs')
| -rw-r--r-- | src/librustc/util/common.rs | 3 |
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)); |
