summaryrefslogtreecommitdiff
path: root/src/librustc/session
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/session
parent48757a70a382afe27d5469fdcfbe5d434c9d4097 (diff)
downloadrust-3936aff2169a1f61633de2bc475face3a2682efb.tar.gz
Use derive macro for HashStable
Diffstat (limited to 'src/librustc/session')
-rw-r--r--src/librustc/session/search_paths.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc/session/search_paths.rs b/src/librustc/session/search_paths.rs
index a950258cefd..1b6a1739b02 100644
--- a/src/librustc/session/search_paths.rs
+++ b/src/librustc/session/search_paths.rs
@@ -1,4 +1,5 @@
use std::path::{Path, PathBuf};
+use rustc_macros::HashStable;
use crate::session::{early_error, config};
use crate::session::filesearch::make_target_lib_path;
@@ -9,7 +10,7 @@ pub struct SearchPath {
pub files: Vec<PathBuf>,
}
-#[derive(Eq, PartialEq, Clone, Copy, Debug, PartialOrd, Ord, Hash)]
+#[derive(Eq, PartialEq, Clone, Copy, Debug, PartialOrd, Ord, Hash, HashStable)]
pub enum PathKind {
Native,
Crate,