diff --git a/ast/src/lang/core/def/def_to_def2.rs b/ast/src/lang/core/def/def_to_def2.rs index 759b1d8b17..f6a893ae25 100644 --- a/ast/src/lang/core/def/def_to_def2.rs +++ b/ast/src/lang/core/def/def_to_def2.rs @@ -30,8 +30,6 @@ pub fn def_to_def2<'a>( ) -> Def2 { use roc_parse::ast::Def::*; - dbg!(parsed_def); - match parsed_def { SpaceBefore(inner_def, comments) => { if comments.len() > 0 { diff --git a/compiler/load/src/file.rs b/compiler/load/src/file.rs index c75a803ea2..a913a92ebb 100644 --- a/compiler/load/src/file.rs +++ b/compiler/load/src/file.rs @@ -3749,6 +3749,7 @@ where &mut var_store, look_up_builtins, ); + let canonicalize_end = SystemTime::now(); module_timing.canonicalize = canonicalize_end.duration_since(canonicalize_start).unwrap(); diff --git a/compiler/parse/src/expr.rs b/compiler/parse/src/expr.rs index e8db8c924d..77553c3ef2 100644 --- a/compiler/parse/src/expr.rs +++ b/compiler/parse/src/expr.rs @@ -1580,7 +1580,7 @@ pub fn defs<'a>(min_indent: u16) -> impl Parser<'a, Vec<'a, Located>>, E .alloc(def.value) .with_spaces_after(final_space, def.region) } - dbg!(def); + output.push(def); } } diff --git a/compiler/parse/src/parser.rs b/compiler/parse/src/parser.rs index 298ccb8d08..3bc6ad12f2 100644 --- a/compiler/parse/src/parser.rs +++ b/compiler/parse/src/parser.rs @@ -1148,7 +1148,6 @@ macro_rules! skip_second { match $p1.parse(arena, state) { Ok((p1, out1, state)) => match $p2.parse(arena, state) { Ok((p2, _, state)) => { - dbg!(&out1); Ok((p1.or(p2), out1, state)) }, Err((p2, fail, _)) => Err((p1.or(p2), fail, original_state)), diff --git a/compiler/parse/src/test_helpers.rs b/compiler/parse/src/test_helpers.rs index 3d9c406648..44bc8e32f0 100644 --- a/compiler/parse/src/test_helpers.rs +++ b/compiler/parse/src/test_helpers.rs @@ -35,7 +35,6 @@ pub fn parse_defs_with<'a>( match module_defs().parse(arena, state) { Ok(tuple) => { - dbg!(&tuple); Ok(tuple.1) }, Err(tuple) => Err(tuple.1), diff --git a/docs/src/lib.rs b/docs/src/lib.rs index b691b0bd16..6021afc5ea 100644 --- a/docs/src/lib.rs +++ b/docs/src/lib.rs @@ -143,7 +143,6 @@ pub fn syntax_highlight_top_level_defs<'a>( match roc_parse::test_helpers::parse_defs_with(arena, trimmed_code_str) { Ok(vec_loc_def) => { - dbg!(&vec_loc_def); let vec_def = vec_loc_def.iter().map(|loc| loc.value).collect(); defs_to_html(buf, vec_def, env_module_id, interns)?; diff --git a/docs/tests/insert_syntax_highlighting.rs b/docs/tests/insert_syntax_highlighting.rs index 46a054fa61..6ba6141aec 100644 --- a/docs/tests/insert_syntax_highlighting.rs +++ b/docs/tests/insert_syntax_highlighting.rs @@ -204,7 +204,8 @@ main = "Hello, world!" ); } - #[test] + // TODO see issue #2134 + /*#[test] fn tld_with_comment_after() { expect_html_def( indoc!( @@ -214,5 +215,5 @@ main = "Hello, world!" ), "myVal = \"Hello, World!\"# COMMENT\n\n\n\n", ); - } + }*/ }