@@ -51,7 +51,7 @@ pub struct Config {
51
51
pub uint_type : UintTy ,
52
52
}
53
53
54
- #[ derive( Clone ) ]
54
+ #[ derive( Clone , Hash ) ]
55
55
pub enum Sanitizer {
56
56
Address ,
57
57
Leak ,
@@ -970,7 +970,7 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
970
970
"encode MIR of all functions into the crate metadata" ) ,
971
971
osx_rpath_install_name: bool = ( false , parse_bool, [ TRACKED ] ,
972
972
"pass `-install_name @rpath/...` to the OSX linker" ) ,
973
- sanitizer: Option <Sanitizer > = ( None , parse_sanitizer, [ UNTRACKED ] ,
973
+ sanitizer: Option <Sanitizer > = ( None , parse_sanitizer, [ TRACKED ] ,
974
974
"Use a sanitizer" ) ,
975
975
}
976
976
@@ -1728,7 +1728,7 @@ mod dep_tracking {
1728
1728
use std:: path:: PathBuf ;
1729
1729
use std:: collections:: hash_map:: DefaultHasher ;
1730
1730
use super :: { Passes , CrateType , OptLevel , DebugInfoLevel ,
1731
- OutputTypes , Externs , ErrorOutputType } ;
1731
+ OutputTypes , Externs , ErrorOutputType , Sanitizer } ;
1732
1732
use syntax:: feature_gate:: UnstableFeatures ;
1733
1733
use rustc_back:: PanicStrategy ;
1734
1734
@@ -1781,6 +1781,8 @@ mod dep_tracking {
1781
1781
impl_dep_tracking_hash_via_hash ! ( Externs ) ;
1782
1782
impl_dep_tracking_hash_via_hash ! ( OutputTypes ) ;
1783
1783
impl_dep_tracking_hash_via_hash ! ( cstore:: NativeLibraryKind ) ;
1784
+ impl_dep_tracking_hash_via_hash ! ( Sanitizer ) ;
1785
+ impl_dep_tracking_hash_via_hash ! ( Option <Sanitizer >) ;
1784
1786
1785
1787
impl_dep_tracking_hash_for_sortable_vec_of ! ( String ) ;
1786
1788
impl_dep_tracking_hash_for_sortable_vec_of ! ( CrateType ) ;
0 commit comments