Skip to content

Commit ca94290

Browse files
committed
replace dbg with trace
1 parent d5336c2 commit ca94290

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: compiler/rustc_builtin_macros/src/autodiff.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ fn gen_enzyme_decl(
562562
let old_name = if let PatKind::Ident(_, ident, _) = arg.pat.kind {
563563
ident.name
564564
} else {
565-
dbg!(&shadow_arg.pat);
565+
trace!("{:#?}", &shadow_arg.pat);
566566
panic!("not an ident?");
567567
};
568568
let name: String = format!("d{}", old_name);
@@ -582,7 +582,7 @@ fn gen_enzyme_decl(
582582
let old_name = if let PatKind::Ident(_, ident, _) = arg.pat.kind {
583583
ident.name
584584
} else {
585-
dbg!(&shadow_arg.pat);
585+
trace!("{:#?}", &shadow_arg.pat);
586586
panic!("not an ident?");
587587
};
588588
let name: String = format!("b{}", old_name);
@@ -601,7 +601,7 @@ fn gen_enzyme_decl(
601601
// Nothing to do here.
602602
}
603603
_ => {
604-
dbg!(&activity);
604+
trace!{"{:#?}", &activity};
605605
panic!("Not implemented");
606606
}
607607
}

0 commit comments

Comments
 (0)