@@ -12,7 +12,6 @@ use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
1212use rustc_data_structures:: sync:: { DynSend , DynSync , try_par_for_each_in} ;
1313use rustc_hir:: def:: { DefKind , Res } ;
1414use rustc_hir:: def_id:: { DefId , LocalDefId , LocalModDefId } ;
15- use rustc_hir:: lints:: DelayedLint ;
1615use rustc_hir:: * ;
1716use rustc_macros:: { Decodable , Encodable , HashStable } ;
1817use rustc_span:: { ErrorGuaranteed , ExpnId , Span } ;
@@ -165,15 +164,10 @@ impl<'tcx> TyCtxt<'tcx> {
165164 node : OwnerNode < ' _ > ,
166165 bodies : & SortedMap < ItemLocalId , & Body < ' _ > > ,
167166 attrs : & SortedMap < ItemLocalId , & [ Attribute ] > ,
168- delayed_lints : & [ DelayedLint ] ,
169167 define_opaque : Option < & [ ( Span , LocalDefId ) ] > ,
170168 ) -> Hashes {
171169 if !self . needs_crate_hash ( ) {
172- return Hashes {
173- opt_hash_including_bodies : None ,
174- attrs_hash : None ,
175- delayed_lints_hash : None ,
176- } ;
170+ return Hashes { opt_hash_including_bodies : None , attrs_hash : None } ;
177171 }
178172
179173 self . with_stable_hashing_context ( |mut hcx| {
@@ -191,16 +185,7 @@ impl<'tcx> TyCtxt<'tcx> {
191185
192186 let h2 = stable_hasher. finish ( ) ;
193187
194- // hash lints emitted during ast lowering
195- let mut stable_hasher = StableHasher :: new ( ) ;
196- delayed_lints. hash_stable ( & mut hcx, & mut stable_hasher) ;
197- let h3 = stable_hasher. finish ( ) ;
198-
199- Hashes {
200- opt_hash_including_bodies : Some ( h1) ,
201- attrs_hash : Some ( h2) ,
202- delayed_lints_hash : Some ( h3) ,
203- }
188+ Hashes { opt_hash_including_bodies : Some ( h1) , attrs_hash : Some ( h2) }
204189 } )
205190 }
206191
@@ -364,7 +349,6 @@ impl<'tcx> TyCtxt<'tcx> {
364349pub struct Hashes {
365350 pub opt_hash_including_bodies : Option < Fingerprint > ,
366351 pub attrs_hash : Option < Fingerprint > ,
367- pub delayed_lints_hash : Option < Fingerprint > ,
368352}
369353
370354pub fn provide ( providers : & mut Providers ) {
0 commit comments