diagnostics: suggets assert_eq!() instead of assert!() where appropriate #57507
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This currently gives an error like so:
If arguments 1 and 2 are the same type, it would be great if we could instead suggest using
assert_eq!
instead (preferably with rustfix applicable hint)!Alternatively we could suggest transforming
x, 3
tox == 3
but I guessassert_eq!()
is more idiomatic.The text was updated successfully, but these errors were encountered: