mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Add some tracing for debug purposes
This commit is contained in:
parent
6e64bfc513
commit
15f66e3eaa
3 changed files with 4 additions and 0 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -3759,6 +3759,7 @@ dependencies = [
|
|||
"roc_std",
|
||||
"roc_target",
|
||||
"roc_test_utils",
|
||||
"roc_tracing",
|
||||
"roc_types",
|
||||
"strum",
|
||||
"strum_macros",
|
||||
|
|
|
@ -18,6 +18,7 @@ roc_module = { path = "../compiler/module" }
|
|||
roc_collections = { path = "../compiler/collections" }
|
||||
roc_target = { path = "../compiler/roc_target" }
|
||||
roc_error_macros = { path = "../error_macros" }
|
||||
roc_tracing = { path = "../tracing" }
|
||||
bumpalo = { version = "3.8.0", features = ["collections"] }
|
||||
target-lexicon = "0.12.3"
|
||||
clap = { version = "3.2.18", default-features = false, features = ["std", "color", "suggestions", "derive"] }
|
||||
|
|
|
@ -653,6 +653,8 @@ impl<'a> Env<'a> {
|
|||
}
|
||||
|
||||
fn add_type(&mut self, var: Variable, types: &mut Types) -> TypeId {
|
||||
roc_tracing::debug!(content=?roc_types::subs::SubsFmtContent(self.subs.get_content_without_compacting(var), self.subs), "adding type");
|
||||
|
||||
let layout = self
|
||||
.layout_cache
|
||||
.from_var(self.arena, var, self.subs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue