Skip to content
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

Should link to improved long-form error for nonlexical borrows #25913

Closed
pythonesque opened this issue May 31, 2015 · 2 comments
Closed

Should link to improved long-form error for nonlexical borrows #25913

pythonesque opened this issue May 31, 2015 · 2 comments
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.

Comments

@pythonesque
Copy link
Contributor

Our current message, "help: consider using a let binding to increase its lifetime," doesn't have a long-form version indicating that there are future plans for it to be fixed (e.g. by linking the non-lexical borrows issue, rust-lang/rfcs#811). I believe this would be warranted given the frequency with which people encounter this error and the fact that the given solution is correct often enough to warrant that message in the first place.

@sfackler sfackler added the A-diagnostics Area: Messages for errors, warnings, and lints label May 31, 2015
@steveklabnik
Copy link
Member

Triage: no change.

@steveklabnik steveklabnik added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Mar 9, 2017
@Mark-Simulacrum
Copy link
Member

I think that this wouldn't be all that helpful, and might almost be discouraging to users of the language -- the feature isn't gated behind some flag they could enable yet -- and largely I feel like it would just add to the frustration with the compiler typically experienced by people looking at lifetime errors. As such, I'm going to close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

4 participants