Skip to content

Reformulate point_at_expr_source_of_inferred_type to be more accurate #108687

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Conversation

compiler-errors
Copy link
Member

@compiler-errors compiler-errors commented Mar 3, 2023

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 rename note_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

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 3, 2023
@bors
Copy link
Collaborator

bors commented Mar 3, 2023

☔ The latest upstream changes (presumably #108707) made this pull request unmergeable. Please resolve the merge conflicts.

@compiler-errors compiler-errors force-pushed the reformulate-point_at_expr_source_of_inferred_type branch from b4d7750 to 9d23826 Compare March 17, 2023 06:04
@bors
Copy link
Collaborator

bors commented Mar 31, 2023

☔ The latest upstream changes (presumably #109762) made this pull request unmergeable. Please resolve the merge conflicts.

@compiler-errors compiler-errors force-pushed the reformulate-point_at_expr_source_of_inferred_type branch from 9d23826 to 3bb0f3c Compare April 9, 2023 06:36
@bors
Copy link
Collaborator

bors commented Apr 12, 2023

☔ The latest upstream changes (presumably #110249) made this pull request unmergeable. Please resolve the merge conflicts.

@rust-cloud-vms rust-cloud-vms bot force-pushed the reformulate-point_at_expr_source_of_inferred_type branch 2 times, most recently from 7f340bf to 5cc4757 Compare April 12, 2023 23:27
@compiler-errors
Copy link
Member Author

It's been more than a month without review.

r? compiler

@rustbot rustbot assigned oli-obk and unassigned estebank Apr 14, 2023
@oli-obk
Copy link
Contributor

oli-obk commented Apr 14, 2023

Lol I should not have reviewed commit-by-commit. Everything I noticed was fixed later.

@bors r+

@bors
Copy link
Collaborator

bors commented Apr 14, 2023

📌 Commit 5cc4757 has been approved by oli-obk

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 14, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 14, 2023
…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
@bors bors merged commit 7bfccb3 into rust-lang:master Apr 14, 2023
@rustbot rustbot added this to the 1.70.0 milestone Apr 14, 2023
@compiler-errors compiler-errors deleted the reformulate-point_at_expr_source_of_inferred_type branch August 11, 2023 20:14
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants