-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Spans disagree with each other on what the correct lifetime might be for the return type #106517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@rustbot claim |
After some investigations into the issue, I'd like to explain the reasons of spans disagreeing with each other, and potential solutions and side effects if any.
|
The outputs after the code changed to using the long form for all type error notes are:
|
From one of our tests:
produces the following error:
Note how in the mismatched types error we’re seing two spans disagreeing with each other on what the lifetime of
&str
ought to be. This can come across as pretty weird.The text was updated successfully, but these errors were encountered: