mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +00:00
Remove stray dbgs
This commit is contained in:
parent
60601dada2
commit
b8328c2b5b
2 changed files with 1 additions and 46 deletions
|
@ -3063,13 +3063,6 @@ fn specialize_external<'a>(
|
|||
}
|
||||
};
|
||||
|
||||
dbg!((
|
||||
lambda_name.name(),
|
||||
roc_types::subs::SubsFmtContent(
|
||||
env.subs.get_content_without_compacting(body_var),
|
||||
env.subs
|
||||
)
|
||||
));
|
||||
let mut specialized_body = from_can(env, body_var, body, procs, layout_cache);
|
||||
|
||||
match specialized {
|
||||
|
@ -5231,13 +5224,6 @@ fn late_resolve_ability_specialization<'a>(
|
|||
env.subs[spec_symbol_index]
|
||||
} else {
|
||||
// Otherwise, resolve by checking the able var.
|
||||
dbg!((
|
||||
member,
|
||||
roc_types::subs::SubsFmtContent(
|
||||
env.subs.get_content_without_compacting(specialization_var),
|
||||
env.subs
|
||||
)
|
||||
));
|
||||
let specialization = resolve_ability_specialization(
|
||||
env.home,
|
||||
env.subs,
|
||||
|
@ -5246,19 +5232,6 @@ fn late_resolve_ability_specialization<'a>(
|
|||
specialization_var,
|
||||
)
|
||||
.expect("Ability specialization is unknown - code generation cannot proceed!");
|
||||
// let specialization = env
|
||||
// .abilities
|
||||
// .with_module_abilities_store(env.home, |store| {
|
||||
// dbg!((
|
||||
// member,
|
||||
// roc_types::subs::SubsFmtContent(
|
||||
// env.subs.get_content_without_compacting(specialization_var),
|
||||
// env.subs
|
||||
// )
|
||||
// ));
|
||||
// resolve_ability_specialization(env.subs, store, member, specialization_var)
|
||||
// .expect("Ability specialization is unknown - code generation cannot proceed!")
|
||||
// });
|
||||
|
||||
match specialization {
|
||||
Resolved::Specialization(symbol) => symbol,
|
||||
|
@ -8815,13 +8788,6 @@ fn from_can_pattern_help<'a>(
|
|||
..
|
||||
} => {
|
||||
// sorted fields based on the type
|
||||
dbg!(
|
||||
env.home,
|
||||
roc_types::subs::SubsFmtContent(
|
||||
env.subs.get_content_without_compacting(*whole_var),
|
||||
env.subs
|
||||
)
|
||||
);
|
||||
let sorted_fields =
|
||||
crate::layout::sort_record_fields(env.arena, *whole_var, env.subs, env.target_info)
|
||||
.map_err(RuntimeError::from)?;
|
||||
|
|
|
@ -611,13 +611,6 @@ pub fn resolve_ability_specialization<R: AbilityResolver>(
|
|||
let snapshot = subs.snapshot();
|
||||
|
||||
instantiate_rigids(subs, signature_var);
|
||||
dbg!((
|
||||
roc_types::subs::SubsFmtContent(
|
||||
subs.get_content_without_compacting(specialization_var),
|
||||
subs
|
||||
),
|
||||
roc_types::subs::SubsFmtContent(subs.get_content_without_compacting(signature_var), subs)
|
||||
));
|
||||
let (_vars, must_implement_ability, _lambda_sets_to_specialize, _meta) = unify(
|
||||
&mut Env::new(subs),
|
||||
specialization_var,
|
||||
|
@ -630,12 +623,8 @@ pub fn resolve_ability_specialization<R: AbilityResolver>(
|
|||
|
||||
subs.rollback_to(snapshot);
|
||||
|
||||
dbg!((&must_implement_ability, parent_ability));
|
||||
|
||||
let obligated = type_implementing_specialization(&must_implement_ability, parent_ability)?;
|
||||
|
||||
dbg!(&obligated);
|
||||
|
||||
let resolved = match obligated {
|
||||
Obligated::Opaque(symbol) => {
|
||||
let impl_key = roc_can::abilities::ImplKey {
|
||||
|
@ -659,5 +648,5 @@ pub fn resolve_ability_specialization<R: AbilityResolver>(
|
|||
}
|
||||
};
|
||||
|
||||
dbg!(Some(resolved))
|
||||
Some(resolved)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue