-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
error printed twice for deref recursion limit exceeded #38940
Copy link
Copy link
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I wrote some code for a rustc test which intentionally hits the recursion limit while trying to autoderef from
&Topto&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=jsonthat the second error has a dummy span attached: https://gist.github.com/durka/04031f5701b5740f0f413267fc913e87cc @jseyfried @jonathandturner