@@ -82,7 +82,7 @@ impl<'tcx> Stack {
82
82
/// Panics if any of the caching mechanisms have broken,
83
83
/// - The StackCache indices don't refer to the parallel items,
84
84
/// - There are no Unique items outside of first_unique..last_unique
85
- #[ cfg( feature = "expensive-debug-assertions" ) ]
85
+ #[ cfg( debug_assertions ) ]
86
86
fn verify_cache_consistency ( & self ) {
87
87
// Only a full cache needs to be valid. Also see the comments in find_granting_cache
88
88
// and set_unknown_bottom.
@@ -115,7 +115,7 @@ impl<'tcx> Stack {
115
115
tag : SbTagExtra ,
116
116
exposed_tags : & FxHashSet < SbTag > ,
117
117
) -> Result < Option < usize > , ( ) > {
118
- #[ cfg( feature = "expensive-debug-assertions" ) ]
118
+ #[ cfg( debug_assertions ) ]
119
119
self . verify_cache_consistency ( ) ;
120
120
121
121
let SbTagExtra :: Concrete ( tag) = tag else {
@@ -247,7 +247,7 @@ impl<'tcx> Stack {
247
247
// This primes the cache for the next access, which is almost always the just-added tag.
248
248
self . cache . add ( new_idx, new) ;
249
249
250
- #[ cfg( feature = "expensive-debug-assertions" ) ]
250
+ #[ cfg( debug_assertions ) ]
251
251
self . verify_cache_consistency ( ) ;
252
252
}
253
253
@@ -325,7 +325,7 @@ impl<'tcx> Stack {
325
325
self . unique_range . end = self . unique_range . end . min ( disable_start + 1 ) ;
326
326
}
327
327
328
- #[ cfg( feature = "expensive-debug-assertions" ) ]
328
+ #[ cfg( debug_assertions ) ]
329
329
self . verify_cache_consistency ( ) ;
330
330
331
331
Ok ( ( ) )
@@ -380,7 +380,7 @@ impl<'tcx> Stack {
380
380
self . unique_range = 0 ..0 ;
381
381
}
382
382
383
- #[ cfg( feature = "expensive-debug-assertions" ) ]
383
+ #[ cfg( debug_assertions ) ]
384
384
self . verify_cache_consistency ( ) ;
385
385
Ok ( ( ) )
386
386
}
0 commit comments