Skip to content

Commit 7ab16b0

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cobalt-ast/src/types/agg.rs

Lines changed: 3 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,7 @@ 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+
dbg!(target.is_and::<types::Pointer>(|r| r.base() == self.elem()))
770770
}
771771
fn _can_refmut_iconv(&'static self, target: TypeRef, ctx: &CompCtx) -> bool {
772772
target.is_and::<types::Pointer>(|r| {

0 commit comments

Comments
 (0)