@@ -17,7 +17,6 @@ use rustc_data_structures::steal::Steal;
1717use rustc_data_structures:: sync:: { DynSend , DynSync , spawn, try_par_for_each_in} ;
1818use rustc_hir:: def:: { DefKind , Res } ;
1919use rustc_hir:: def_id:: { DefId , LocalDefId , LocalModDefId } ;
20- use rustc_hir:: lints:: DelayedLint ;
2120use rustc_hir:: * ;
2221use rustc_index:: IndexVec ;
2322use rustc_macros:: { Decodable , Encodable , HashStable } ;
@@ -255,15 +254,10 @@ impl<'tcx> TyCtxt<'tcx> {
255254 node : OwnerNode < ' _ > ,
256255 bodies : & SortedMap < ItemLocalId , & Body < ' _ > > ,
257256 attrs : & SortedMap < ItemLocalId , & [ Attribute ] > ,
258- delayed_lints : & [ DelayedLint ] ,
259257 define_opaque : Option < & [ ( Span , LocalDefId ) ] > ,
260258 ) -> Hashes {
261259 if !self . needs_crate_hash ( ) {
262- return Hashes {
263- opt_hash_including_bodies : None ,
264- attrs_hash : None ,
265- delayed_lints_hash : None ,
266- } ;
260+ return Hashes { opt_hash_including_bodies : None , attrs_hash : None } ;
267261 }
268262
269263 self . with_stable_hashing_context ( |mut hcx| {
@@ -281,16 +275,7 @@ impl<'tcx> TyCtxt<'tcx> {
281275
282276 let h2 = stable_hasher. finish ( ) ;
283277
284- // hash lints emitted during ast lowering
285- let mut stable_hasher = StableHasher :: new ( ) ;
286- delayed_lints. hash_stable ( & mut hcx, & mut stable_hasher) ;
287- let h3 = stable_hasher. finish ( ) ;
288-
289- Hashes {
290- opt_hash_including_bodies : Some ( h1) ,
291- attrs_hash : Some ( h2) ,
292- delayed_lints_hash : Some ( h3) ,
293- }
278+ Hashes { opt_hash_including_bodies : Some ( h1) , attrs_hash : Some ( h2) }
294279 } )
295280 }
296281
@@ -484,7 +469,6 @@ impl<'tcx> TyCtxt<'tcx> {
484469pub struct Hashes {
485470 pub opt_hash_including_bodies : Option < Fingerprint > ,
486471 pub attrs_hash : Option < Fingerprint > ,
487- pub delayed_lints_hash : Option < Fingerprint > ,
488472}
489473
490474pub fn provide ( providers : & mut Providers ) {
0 commit comments