-
Notifications
You must be signed in to change notification settings - Fork 13.4k
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
Conversation
This comment has been minimized.
This comment has been minimized.
let impl_candidates = self | ||
.find_similar_impl_candidates(trait_ref) | ||
.into_iter() | ||
.map(|candidate| candidate.trait_ref) | ||
.collect(); |
There was a problem hiding this comment.
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.
help: try using a fully qualified path to specify the expected types | ||
| | ||
LL | <Vec<T> as Foo>::foo(&x); | ||
| ++++++++++++++++++++++ ~ |
There was a problem hiding this comment.
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.
@bors r+ |
📌 Commit 458718170b4252f85b2e795d6968d0b0faa6120e has been approved by |
…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
☔ The latest upstream changes (presumably #98781) made this pull request unmergeable. Please resolve the merge conflicts. |
@bors r=estebank |
📌 Commit f475e88 has been approved by |
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`
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
this now deals with macros in suggestions and the source cost computation does what I want for
channel
🎉r? @estebank