Skip to content

Commit b5ebf45

Browse files
committed
NOMERGE: add dbg!s to figure out what's going on in unit tests
1 parent bf40c44 commit b5ebf45

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cobalt-ast/src/types/agg.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,9 +690,9 @@ impl Type for SizedArray {
690690
target: (TypeRef, Option<SourceSpan>),
691691
ctx: &CompCtx<'src, 'ctx>,
692692
) -> Result<Value<'src, 'ctx>, CobaltError<'src>> {
693-
if target
693+
if dbg!(target
694694
.0
695-
.is_and::<types::Pointer>(|r| r.base() == self.elem())
695+
.is_and::<types::Pointer>(|r| r.base() == self.elem()))
696696
{
697697
Ok(Value {
698698
data_type: target.0,
@@ -766,7 +766,8 @@ impl Type for SizedArray {
766766
}
767767
}
768768
fn _can_ref_iconv(&'static self, target: TypeRef, ctx: &CompCtx) -> bool {
769-
target.is_and::<types::Pointer>(|r| r.base() == self.elem())
769+
eprintln!("self: {self}, target: {target}");
770+
dbg!(target.is_and::<types::Pointer>(|r| r.base() == self.elem()))
770771
}
771772
fn _can_refmut_iconv(&'static self, target: TypeRef, ctx: &CompCtx) -> bool {
772773
target.is_and::<types::Pointer>(|r| {

0 commit comments

Comments
 (0)