Skip to content

Commit

Permalink
Print syntax trees in test_fixup failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 5, 2025
1 parent 5c935d2 commit 52699de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -843,9 +843,11 @@ fn test_fixup() {

assert!(
original == reconstructed,
"original: {}\nreconstructed: {}",
"original: {}\n{:#?}\nreconstructed: {}\n{:#?}",
original.to_token_stream(),
crate::macros::debug::Lite(&original),
reconstructed.to_token_stream(),
crate::macros::debug::Lite(&reconstructed),
);
}
}
Expand Down

0 comments on commit 52699de

Please sign in to comment.