mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 05:24:15 +00:00
mv dbg to check proc key hashes
This commit is contained in:
parent
17624a9d2c
commit
ec9d4fa58b
3 changed files with 9 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue