mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
auto clippy fixes
This commit is contained in:
parent
72c85efc83
commit
ef39bad7c6
146 changed files with 750 additions and 1005 deletions
|
@ -187,9 +187,9 @@ fn trace_compaction_step_1(subs: &Subs, c_a: Variable, uls_a: &[Variable]) {
|
|||
.collect::<Vec<_>>()
|
||||
.join(",");
|
||||
eprintln!("===lambda set compaction===");
|
||||
eprintln!(" concrete type: {:?}", c_a);
|
||||
eprintln!(" concrete type: {c_a:?}");
|
||||
eprintln!(" step 1:");
|
||||
eprintln!(" uls_a = {{ {} }}", uls_a);
|
||||
eprintln!(" uls_a = {{ {uls_a} }}");
|
||||
}
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
|
@ -205,7 +205,7 @@ fn trace_compaction_step_2(subs: &Subs, uls_a: &[Variable]) {
|
|||
.collect::<Vec<_>>()
|
||||
.join(",");
|
||||
eprintln!(" step 2:");
|
||||
eprintln!(" uls_a' = {{ {} }}", uls_a);
|
||||
eprintln!(" uls_a' = {{ {uls_a} }}");
|
||||
}
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
|
@ -226,9 +226,9 @@ fn trace_compaction_step_3iter_start(
|
|||
);
|
||||
let t_f1 = roc_types::subs::SubsFmtContent(subs.get_content_without_compacting(t_f1), subs);
|
||||
let t_f2 = roc_types::subs::SubsFmtContent(subs.get_content_without_compacting(t_f2), subs);
|
||||
eprintln!(" - iteration: {:?}", iteration_lambda_set);
|
||||
eprintln!(" {:?}", t_f1);
|
||||
eprintln!(" ~ {:?}", t_f2);
|
||||
eprintln!(" - iteration: {iteration_lambda_set:?}");
|
||||
eprintln!(" {t_f1:?}");
|
||||
eprintln!(" ~ {t_f2:?}");
|
||||
}
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
|
@ -239,7 +239,7 @@ fn trace_compaction_step_3iter_end(subs: &Subs, t_f_result: Variable, skipped: b
|
|||
if skipped {
|
||||
eprintln!(" SKIP");
|
||||
}
|
||||
eprintln!(" = {:?}\n", t_f_result);
|
||||
eprintln!(" = {t_f_result:?}\n");
|
||||
}
|
||||
|
||||
macro_rules! trace_compact {
|
||||
|
@ -536,7 +536,7 @@ fn compact_lambda_set<P: Phase>(
|
|||
Err(()) => {
|
||||
// Do nothing other than to remove the concrete lambda to drop from the lambda set,
|
||||
// which we already did in 1b above.
|
||||
trace_compact!(3iter_end_skipped. env.subs, t_f1);
|
||||
trace_compact!(3iter_end_skipped.env.subs, t_f1);
|
||||
return OneCompactionResult::Compacted {
|
||||
new_obligations: Default::default(),
|
||||
new_lambda_sets_to_specialize: Default::default(),
|
||||
|
@ -559,7 +559,7 @@ fn compact_lambda_set<P: Phase>(
|
|||
Err(()) => {
|
||||
// Do nothing other than to remove the concrete lambda to drop from the lambda set,
|
||||
// which we already did in 1b above.
|
||||
trace_compact!(3iter_end_skipped. env.subs, t_f1);
|
||||
trace_compact!(3iter_end_skipped.env.subs, t_f1);
|
||||
return OneCompactionResult::Compacted {
|
||||
new_obligations: Default::default(),
|
||||
new_lambda_sets_to_specialize: Default::default(),
|
||||
|
@ -572,7 +572,7 @@ fn compact_lambda_set<P: Phase>(
|
|||
let t_f2 = deep_copy_var_in(env, target_rank, t_f2, env.arena);
|
||||
|
||||
// 3. Unify `t_f1 ~ t_f2`.
|
||||
trace_compact!(3iter_start. env.subs, this_lambda_set, t_f1, t_f2);
|
||||
trace_compact!(3iter_start.env.subs, this_lambda_set, t_f1, t_f2);
|
||||
let (vars, new_obligations, new_lambda_sets_to_specialize, _meta) = unify(
|
||||
&mut env.uenv(),
|
||||
t_f1,
|
||||
|
@ -581,7 +581,7 @@ fn compact_lambda_set<P: Phase>(
|
|||
Polarity::Pos,
|
||||
)
|
||||
.expect_success("ambient functions don't unify");
|
||||
trace_compact!(3iter_end. env.subs, t_f1);
|
||||
trace_compact!(3iter_end.env.subs, t_f1);
|
||||
|
||||
env.introduce(target_rank, &vars);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue