Uh oh!
There was an error while loading. Please reload this page.
Suggest .into() when all other coercion suggestions fail - #102496
Merged
Conversation
rust-highfive
commented
Sep 30, 2022
Contributor
r? @nagisa (rust-highfive has picked a reviewer for you, use r? to override) |
compiler-errors
commented
Sep 30, 2022
ContributorAuthor
r? diagnostics |
Uh oh!
There was an error while loading. Please reload this page.
bors
commented
Oct 1, 2022
Collaborator
☔ The latest upstream changes (presumably #102545) made this pull request unmergeable. Please resolve the merge conflicts. |
Member
There was a problem hiding this comment.
Suggested change
| format!("call `into` on this expression to convert `{expr_ty}` into `{expected_ty}`"), | |
| format!("call `std::convert::Into::into` on this expression to convert `{expr_ty}` into `{expected_ty}`"), |
I agree with @lukaslueg that this might be clearer, maybe just Into::into?
davidtwco
commented
Oct 3, 2022
Member
r=me after resolving comment |
compiler-errorsforce-pushed
the
into-suggestion
branch
from
October 4, 2022 03:09
f89cb48 to
6eb33f1Comparecompiler-errors
commented
Oct 4, 2022
ContributorAuthor
@bors r=davidtwco |
bors
commented
Oct 4, 2022
Collaborator
📌 Commit 6eb33f1f3221824f08f79893647e8672c7ef9e96 has been approved by It is now in the queue for this repository. |
bors added a commit
to rust-lang-ci/rust
that referenced
this pull request
Oct 4, 2022
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#102441 (Suggest unwrap_or_else when a closure is given) - rust-lang#102547 (Migrate CSS theme for search results) - rust-lang#102567 (Delay evaluating lint primary message until after it would be suppressed) - rust-lang#102624 (rustdoc: remove font family CSS on `.rustdoc-toggle summary::before`) - rust-lang#102628 (Change the parameter name of From::from to `value`) - rust-lang#102637 (Ignore fuchsia on two compiler tests) - rust-lang#102639 (Improve spans when splitting multi-char operator tokens for proc macros.) Failed merges: - rust-lang#102496 (Suggest `.into()` when all other coercion suggestions fail) r? `@ghost` `@rustbot` modify labels: rollup
bors
commented
Oct 4, 2022
Collaborator
☔ The latest upstream changes (presumably #102644) made this pull request unmergeable. Please resolve the merge conflicts. |
compiler-errorsforce-pushed
the
into-suggestion
branch
from
October 5, 2022 02:55
6eb33f1 to
28eda9bComparecompiler-errors
commented
Oct 5, 2022
ContributorAuthor
@bors r=davidtwco |
bors
commented
Oct 5, 2022
Collaborator
bors added a commit
to rust-lang-ci/rust
that referenced
this pull request
Oct 5, 2022
Rollup of 5 pull requests Successful merges: - rust-lang#100986 (Stop suggesting adding generic args for turbofish) - rust-lang#101061 (panic-on-uninit: adjust checks to 0x01-filling) - rust-lang#102440 (Only export `__tls_*` on wasm32-unknown-unknown.) - rust-lang#102496 (Suggest `.into()` when all other coercion suggestions fail) - rust-lang#102699 (Fix hamburger button color) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Also removes some bogus suggestions because we now short-circuit when offering coercion suggestions(instead of, for example, suggesting every one that could possibly apply)
Fixes#102415