-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Reformulate point_at_expr_source_of_inferred_type
to be more accurate
#108687
Reformulate point_at_expr_source_of_inferred_type
to be more accurate
#108687
Conversation
☔ The latest upstream changes (presumably #108707) made this pull request unmergeable. Please resolve the merge conflicts. |
b4d7750
to
9d23826
Compare
☔ The latest upstream changes (presumably #109762) made this pull request unmergeable. Please resolve the merge conflicts. |
9d23826
to
3bb0f3c
Compare
☔ The latest upstream changes (presumably #110249) made this pull request unmergeable. Please resolve the merge conflicts. |
7f340bf
to
5cc4757
Compare
It's been more than a month without review. r? compiler |
Lol I should not have reviewed commit-by-commit. Everything I noticed was fixed later. @bors r+ |
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#108687 (Reformulate `point_at_expr_source_of_inferred_type` to be more accurate) - rust-lang#109272 (Add Command environment variable inheritance docs) - rust-lang#109947 (Add links from `core::cmp` derives to their traits) - rust-lang#110110 (Use `Display` in top-level example for `PanicInfo`) - rust-lang#110154 (Fix typos in library) - rust-lang#110244 (Remove some unneeded imports / qualified paths) - rust-lang#110328 ([rustdoc] Add explanations for auto-disambiguation when an intra doc link is resolved to a proc-macro and a trait at the same time) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Be more accurate when deducing where along the several usages of a binding it is constrained to be some type that is incompatible with an expectation.
This also renames the method to
note_source_of_type_mismatch_constraint
because I prefer that name, though I guess I can revert that. (Also drive-by renamenote_result_coercion
->suggest_coercing_result_via_try_operator
, because it's suggesting, not noting!)This PR is (probably?) best reviewed per commit, but it does regress a bit only to fix it later on, so it could also be reviewed as a whole if that makes the final results more clear.
r? @estebank