-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
region error messages involving impls are confusing #52742
Comments
Disable some nice region errors in NLL mode. Fixes #52739. cc #52742. r? @nikomatsakis
Pulling out some comments from the Zulip thread. It is an interesting question what the output should look like. Here are two possibilities:
It's also interesting to consider the case where we have a named, in-band lifetime:
|
I suppose you could imagine a hybrid:
|
region error messages involving impls are confusing Part of rust-lang#52742. r? @nikomatsakis
region error messages involving impls are confusing Part of #52742. r? @nikomatsakis
region error messages involving impls are confusing Part of #52742. r? @nikomatsakis
We now get:
This seems pretty reasonable. Going to mark as NLL-deferred for now. |
nominating for discussion on whether this should be kept open |
Discussed in the NLL meeting and decided to close: seems like the current output is "good enough" for now. |
produces this confusing error:
I think the problem here is that the "nice region error" code is actually getting in the way of the NLL errors, which are better.
The text was updated successfully, but these errors were encountered: