From 52699de1b03821953a17090ff29d241ae0ef686d Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 4 Jan 2025 20:26:44 -0800 Subject: [PATCH] Print syntax trees in test_fixup failure --- tests/test_expr.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_expr.rs b/tests/test_expr.rs index 0943c44869..edee0bdc91 100644 --- a/tests/test_expr.rs +++ b/tests/test_expr.rs @@ -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), ); } }