error printed twice for deref recursion limit exceeded #38940
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I wrote some code for a rustc test which intentionally hits the recursion limit while trying to autoderef from
&Top
to&Bottom
.In nightly the error when autoderef hits the recursion limit is printed twice. The second time it is printed without a real span.
Stable and beta:
Nightly:
It's clearer to see with
--error-format=json
that the second error has a dummy span attached: https://gist.github.com/durka/04031f5701b5740f0f413267fc913e87cc @jseyfried @jonathandturner
The text was updated successfully, but these errors were encountered: