Change error message of a failing `assert_eq!`
Rust Internals [Unofficial]
April 9, 2026
assert_eq!(expectedPassword, providedPassword) would reveal the secret information anyway. All a modified assert_eq would reveal would be the names of the variables that were provided to the macro. And it wouldn't need any trait specialization, either - I think you misunderstood what I was saying.
Discussion in the ATmosphere