Change error message of a failing `assert_eq!`
Rust Internals [Unofficial]
March 30, 2026
I tend to do actual, expected because actual is usually just a variable reference while expected can be a large literal or other more verbose expression and the last argument is far more amenable to reformat splay than the former (IMO).
Discussion in the ATmosphere