Change error message of a failing `assert_eq!`
Rust Internals [Unofficial]
April 9, 2026
This is the same thing that a regular assert already does, and if you have vulnerabilities or some other issue caused by information exposed by assert_eq!, there's probably a much larger problem at play.
Discussion in the ATmosphere