Uh oh!
There was an error while loading. Please reload this page.
Improve the "try using a variant of the expected type" hint. - #65562
Conversation
rust-highfive
commented
Oct 18, 2019
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @estebank (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Uh oh!
There was an error while loading. Please reload this page.
estebank
commented
Oct 18, 2019
I'm happy with most of it, r=me on those grounds once CI is green. The case I highlighted is correct code, but I liked the readability of the previous version a bit better. It is just a matter of style so it probably doesn't matter. |
estebank
commented
Oct 18, 2019
Moving the PR description to this comment, as it otherwise will end up in the merge commit:
|
rust-highfive
commented
Oct 18, 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 |
JohnCSimon
commented
Oct 26, 2019
Patryk27
commented
Oct 26, 2019
Hi, Thanks for the ping - I was actually waiting for response from @estebank or @Centril (the I fixed the tests for now, but left the behaviour unchanged - please let me know if that's okay :-) |
bors
commented
Oct 26, 2019
☔ The latest upstream changes (presumably #65845) made this pull request unmergeable. Please resolve the merge conflicts. |
estebank
commented
Oct 26, 2019
You will have to rebase against latest master :) |
Patryk27
commented
Oct 27, 2019
Yay! |
estebank
commented
Oct 27, 2019
@bors r+ |
bors
commented
Oct 27, 2019
📌 Commit 1c5d0be has been approved by |
Improve the "try using a variant of the expected type" hint. Fixrust-lang#65494. - Change type-printing output. - Use `span_to_snippet` when possible. - Change the message to `try using a variant of the expected enum`
bors
commented
Oct 28, 2019
☔ The latest upstream changes (presumably #65421) made this pull request unmergeable. Please resolve the merge conflicts. |
Patryk27
commented
Oct 28, 2019
Hi, I've rebased the changes. |
estebank
commented
Oct 28, 2019
@bors r+ |
bors
commented
Oct 28, 2019
📌 Commit 5c023d6 has been approved by |
Improve the "try using a variant of the expected type" hint. Fixrust-lang#65494. - Change type-printing output. - Use `span_to_snippet` when possible. - Change the message to `try using a variant of the expected enum`
Improve the "try using a variant of the expected type" hint. Fixrust-lang#65494. - Change type-printing output. - Use `span_to_snippet` when possible. - Change the message to `try using a variant of the expected enum`
Improve the "try using a variant of the expected type" hint. Fixrust-lang#65494. - Change type-printing output. - Use `span_to_snippet` when possible. - Change the message to `try using a variant of the expected enum`
Rollup of 5 pull requests Successful merges: - #65294 (Lint ignored `#[inline]` on function prototypes) - #65318 (Call out the types that are non local on E0117) - #65531 (Update backtrace to 0.3.40) - #65562 (Improve the "try using a variant of the expected type" hint.) - #65809 (Add new EFIAPI ABI) Failed merges: r? @ghost
bors
commented
Oct 29, 2019
☔ The latest upstream changes (presumably #65919) made this pull request unmergeable. Please resolve the merge conflicts. |
Fix#65494.
span_to_snippetwhen possible.try using a variant of the expected enum