@@ -14,6 +14,7 @@ pub use self::code_stats::{SizeKind, TypeSizeInfo, VariantInfo};
1414use hir:: def_id:: CrateNum ;
1515use ich:: Fingerprint ;
1616
17+ use ich;
1718use lint;
1819use middle:: allocator:: AllocatorKind ;
1920use middle:: dependency_format;
@@ -28,6 +29,7 @@ use errors::{self, DiagnosticBuilder, DiagnosticId};
2829use errors:: emitter:: { Emitter , EmitterWriter } ;
2930use syntax:: json:: JsonEmitter ;
3031use syntax:: feature_gate;
32+ use syntax:: symbol:: Symbol ;
3133use syntax:: parse;
3234use syntax:: parse:: ParseSess ;
3335use syntax:: { ast, codemap} ;
@@ -112,6 +114,9 @@ pub struct Session {
112114
113115 incr_comp_session : RefCell < IncrCompSession > ,
114116
117+ /// A cache of attributes ignored by StableHashingContext
118+ pub ignored_attr_names : FxHashSet < Symbol > ,
119+
115120 /// Some measurements that are being gathered during compilation.
116121 pub perf_stats : PerfStats ,
117122
@@ -975,6 +980,7 @@ pub fn build_session_(sopts: config::Options,
975980 injected_panic_runtime : Cell :: new ( None ) ,
976981 imported_macro_spans : RefCell :: new ( HashMap :: new ( ) ) ,
977982 incr_comp_session : RefCell :: new ( IncrCompSession :: NotInitialized ) ,
983+ ignored_attr_names : ich:: compute_ignored_attr_names ( ) ,
978984 perf_stats : PerfStats {
979985 svh_time : Cell :: new ( Duration :: from_secs ( 0 ) ) ,
980986 incr_comp_hashes_time : Cell :: new ( Duration :: from_secs ( 0 ) ) ,
0 commit comments