mv dbg to check proc key hashes

This commit is contained in:
shua 2025-01-18 23:49:04 +01:00
parent 17624a9d2c
commit ec9d4fa58b
No known key found for this signature in database
3 changed files with 9 additions and 4 deletions

View file

@ -2740,6 +2740,13 @@ fn update<'a>(
// in the future, layouts will be in SoA form and we'll want to hold on to this data
let _ = layout_cache;
{
let proc_keys = procedures
.keys()
.map(|t| (t, std::hash::BuildHasher::hash_one(&default_hasher(), t)))
.collect::<Vec<_>>();
dbg!(proc_keys);
}
state.procedures.extend(procedures);
state
.host_exposed_lambda_sets

View file

@ -708,7 +708,7 @@ impl<'a> Specialized<'a> {
}
// the key/layout combo was not found; insert it
self.symbols.push(symbol);
self.symbols.push(dbg!(symbol));
self.proc_layouts.push(layout);
self.procedures.push(InProgressProc::InProgress);
}
@ -758,7 +758,7 @@ impl<'a> Specialized<'a> {
// the key/layout combo was not found; insert it
let i = self.symbols.len();
self.symbols.push(symbol);
self.symbols.push(dbg!(symbol));
self.proc_layouts.push(layout);
self.procedures.push(InProgressProc::Done(proc));

View file

@ -51,8 +51,6 @@ pub fn apply_trmc<'a, 'i>(
for proc in procs.values_mut() {
use self::SelfRecursive::*;
#[allow(clippy::dbg_macro)]
let _ = dbg!(proc.name, proc.is_self_recursive);
if let SelfRecursive(id) = proc.is_self_recursive {
let trmc_candidate_symbols = trmc_candidates(env.interner, proc);