Skip to content

more need_type_info improvements #98761

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

Merged
merged 5 commits into from
Jul 5, 2022
Merged

Conversation

lcnr
Copy link
Contributor

@lcnr lcnr commented Jul 1, 2022

this now deals with macros in suggestions and the source cost computation does what I want for channel 🎉

r? @estebank

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jul 1, 2022
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 1, 2022
@lcnr lcnr force-pushed the need_type_info-cont branch from f0bfe33 to e096893 Compare July 1, 2022 12:40
@rust-log-analyzer

This comment has been minimized.

@lcnr lcnr force-pushed the need_type_info-cont branch from e096893 to d628447 Compare July 1, 2022 13:04
Comment on lines 2011 to 2015
let impl_candidates = self
.find_similar_impl_candidates(trait_ref)
.into_iter()
.map(|candidate| candidate.trait_ref)
.collect();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we make a note to see if we can check whether this snippet is useful to modify err in some way? I fear we must have had a suggestion regression at some point.

Comment on lines +26 to +29
help: try using a fully qualified path to specify the expected types
|
LL | <Vec<T> as Foo>::foo(&x);
| ++++++++++++++++++++++ ~
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have been <Vec<isize> as Foo>::foo(&x), but that'd be outside of scope for this PR.

@estebank
Copy link
Contributor

estebank commented Jul 1, 2022

@bors r+

@bors
Copy link
Collaborator

bors commented Jul 1, 2022

📌 Commit 458718170b4252f85b2e795d6968d0b0faa6120e has been approved by estebank

@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 Jul 1, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 1, 2022
…laumeGomez

Rollup of 5 pull requests

Successful merges:

 - rust-lang#97249 (`<details>`/`<summary>` UI fixes)
 - rust-lang#98418 (Allow macOS to build LLVM as shared library)
 - rust-lang#98460 (Use CSS variables to handle theming)
 - rust-lang#98497 (Improve some inference diagnostics)
 - rust-lang#98708 (rustdoc: fix 98690 Panic if invalid path for -Z persist-doctests)

Failed merges:

 - rust-lang#98761 (more `need_type_info` improvements)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors
Copy link
Collaborator

bors commented Jul 2, 2022

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

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jul 2, 2022
@lcnr lcnr force-pushed the need_type_info-cont branch from 4587181 to f475e88 Compare July 4, 2022 12:04
@lcnr
Copy link
Contributor Author

lcnr commented Jul 4, 2022

@bors r=estebank

@bors
Copy link
Collaborator

bors commented Jul 4, 2022

📌 Commit f475e88 has been approved by estebank

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 4, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Jul 4, 2022
more `need_type_info` improvements

this now deals with macros in suggestions and the source cost computation does what I want for `channel` 🎉

r? `@estebank`
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 5, 2022
Rollup of 6 pull requests

Successful merges:

 - rust-lang#97300 (Implement `FusedIterator` for `std::net::[Into]Incoming`)
 - rust-lang#98761 (more `need_type_info` improvements)
 - rust-lang#98811 (Interpret: AllocRange Debug impl, and use it more consistently)
 - rust-lang#98847 (fix interpreter validity check on Box)
 - rust-lang#98854 (clean up the borrowing in rustc_hir_pretty)
 - rust-lang#98873 (Suggest `#[derive(Default)]` to enums with `#[default]`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 6a9db39 into rust-lang:master Jul 5, 2022
@rustbot rustbot added this to the 1.64.0 milestone Jul 5, 2022
@lcnr lcnr deleted the need_type_info-cont branch July 5, 2022 11:53
# 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