@@ -14,6 +14,7 @@ pub use self::code_stats::{SizeKind, TypeSizeInfo, VariantInfo};
14
14
use hir:: def_id:: CrateNum ;
15
15
use ich:: Fingerprint ;
16
16
17
+ use ich;
17
18
use lint;
18
19
use middle:: allocator:: AllocatorKind ;
19
20
use middle:: dependency_format;
@@ -28,6 +29,7 @@ use errors::{self, DiagnosticBuilder, DiagnosticId};
28
29
use errors:: emitter:: { Emitter , EmitterWriter } ;
29
30
use syntax:: json:: JsonEmitter ;
30
31
use syntax:: feature_gate;
32
+ use syntax:: symbol:: Symbol ;
31
33
use syntax:: parse;
32
34
use syntax:: parse:: ParseSess ;
33
35
use syntax:: { ast, codemap} ;
@@ -112,6 +114,9 @@ pub struct Session {
112
114
113
115
incr_comp_session : RefCell < IncrCompSession > ,
114
116
117
+ /// A cache of attributes ignored by StableHashingContext
118
+ pub ignored_attr_names : FxHashSet < Symbol > ,
119
+
115
120
/// Some measurements that are being gathered during compilation.
116
121
pub perf_stats : PerfStats ,
117
122
@@ -975,6 +980,7 @@ pub fn build_session_(sopts: config::Options,
975
980
injected_panic_runtime : Cell :: new ( None ) ,
976
981
imported_macro_spans : RefCell :: new ( HashMap :: new ( ) ) ,
977
982
incr_comp_session : RefCell :: new ( IncrCompSession :: NotInitialized ) ,
983
+ ignored_attr_names : ich:: compute_ignored_attr_names ( ) ,
978
984
perf_stats : PerfStats {
979
985
svh_time : Cell :: new ( Duration :: from_secs ( 0 ) ) ,
980
986
incr_comp_hashes_time : Cell :: new ( Duration :: from_secs ( 0 ) ) ,
0 commit comments