Uh oh!
There was an error while loading. Please reload this page.
Add long error explanation for E0495 - #64404
Conversation
rust-highfive
commented
Sep 12, 2019
Some changes occurred in diagnostic error codes |
rust-highfive
commented
Sep 12, 2019
r? @cramertj (rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Is the single-field tuple necessary here? and the match (could it be a let)? It seems like they're adding extra confusion
There was a problem hiding this comment.
I think you're right, I was too focused on simplifying the lifetime change.
There was a problem hiding this comment.
I'm not sure whether this example is representative of the majority of places where users encounter this error-- if users are hitting an error due to mismatched lifetimes, IME it's rare that it's easily solvable by just adding a bound in one location.
There was a problem hiding this comment.
Do you have another example in mind by any chance? Maybe another example would be the best thing to do to avoid confusing users.
There was a problem hiding this comment.
I don't have an easy one that would be representative offhand, sorry. There are a number of things I've seen cause this error, and I don't have a good idea which is the most important to cover, nor what broader categories issues fall into.
JohnCSimon
commented
Sep 21, 2019
Ping from triage. |
bors
commented
Sep 21, 2019
☔ The latest upstream changes (presumably #64658) made this pull request unmergeable. Please resolve the merge conflicts. |
Dylan-DPC-zz
commented
Sep 24, 2019
@GuillaumeGomez can you rebase this? looks good to me |
rust-highfive
commented
Sep 25, 2019
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
GuillaumeGomez
commented
Sep 26, 2019
@Dylan-DPC Don't know what you did but that suddenly broke badly. :p I'll take a look tomorrow. |
bors
commented
Sep 29, 2019
☔ The latest upstream changes (presumably #64886) made this pull request unmergeable. Please resolve the merge conflicts. |
e17987f to
37b5efaCompareGuillaumeGomez
commented
Sep 30, 2019
Updated. |
cramertj
commented
Sep 30, 2019
@bors r+ rollup Seems fine to land to me, thanks! |
bors
commented
Sep 30, 2019
📌 Commit 37b5efa has been approved by |
Add long error explanation for E0495 Part of rust-lang#61137.
tmandry
commented
Sep 30, 2019
GuillaumeGomez
commented
Oct 1, 2019
I rebased and tests passed so I assume the error doesn't come from here but from its merge with another PR. Therefore this r- shouldn't be here. @bors: r=cramertj rollup- |
bors
commented
Oct 1, 2019
📌 Commit be89e52 has been approved by |
Centril
commented
Oct 1, 2019
@bors retry rolled up. |
Add long error explanation for E0495 Part of rust-lang#61137.
@GuillaumeGomez In general you can reproduce failures like this by running tl;dr I think you need to update the nll output. |
pnkfelix
commented
Oct 1, 2019
Hey @Centril maybe scenarios like this are a reason for us to remove compare-mode=nll ... or at least stop gating CI on it |
GuillaumeGomez
commented
Oct 1, 2019
@tmandry That explains why I couldn't reproduce. Thanks for the info! I'll update the PR tomorrow. |
Centril
commented
Oct 1, 2019
@pnkfelix we should probably inventory the reasons why we still use compare-mode=nll and then see if removing it would be safe (but that's for a different issue). |
GuillaumeGomez
commented
Oct 3, 2019
Updated btw. |
bors
commented
Oct 7, 2019
☔ The latest upstream changes (presumably #65178) made this pull request unmergeable. Please resolve the merge conflicts. |
GuillaumeGomez
commented
Oct 7, 2019
Updated. |
Dylan-DPC-zz
commented
Oct 8, 2019
@bors r+ rollup |
bors
commented
Oct 8, 2019
📌 Commit 96efaad has been approved by |
Add long error explanation for E0495 Part of rust-lang#61137.
Add long error explanation for E0495 Part of rust-lang#61137.
Rollup of 8 pull requests Successful merges: - #64404 (Add long error explanation for E0495) - #64918 (Add long error explanation for E0551) - #65102 (Disable stack probe when thread sanitizer is enabled) - #65120 (Correctly estimate the required space for string in `StyledBuffer::prepend`) - #65145 (When suggesting assoc function with type params, include turbofish) - #65162 (Remove loaded_from_cache map from DepGraph) - #65176 (Remove query-related macros) - #65179 (Add long error explanation for E0567) Failed merges: r? @ghost
Part of #61137.