Fix release errors

This commit is contained in:
Ayaz Hafiz 2022-08-29 13:41:57 -05:00
parent d13b556295
commit 66e65714b9
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 6 additions and 4 deletions

View file

@ -2669,7 +2669,7 @@ fn update<'a>(
ident_ids,
subs,
module_timing,
layout_cache,
layout_cache: _layout_cache,
procs_base: _,
},
) in state.module_cache.late_specializations.drain()
@ -2680,8 +2680,9 @@ fn update<'a>(
}
state.timings.insert(module_id, module_timing);
if cfg!(debug_assertions) {
log_layout_stats(module_id, &layout_cache);
#[cfg(debug_assertions)]
{
log_layout_stats(module_id, &_layout_cache);
}
}

View file

@ -88,7 +88,8 @@ pub struct CacheStatistics {
macro_rules! inc_stat {
($stats:expr, $field:ident) => {
if cfg!(debug_assertions) {
#[cfg(debug_assertions)]
{
$stats.$field += 1;
}
};