Recursive PartialEq implementation not detected #99220
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=ed9fb2f62239c9485d43d48e3e0d419b
The current output is:
(no warnings)
Ideally the output should look like:
Note how we do warn about this if you do
self.eq(rhs)
. So I guess it's a matter of treating==
as.eq
for the purposes of recursion checking? Not sure.Happens on nightly/beta/stable.
The text was updated successfully, but these errors were encountered: