-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Include ForeignItem when visiting types for WF check #98159
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
This fixes the issue originally reported, but I'm wondering if the other variants in |
The full list can be found by searching for places where |
HIR WF check is just about getting a more precise diagnostic. Can't we just let the |
@cjgillot Apologies if this should be obvious, but I want to confirm that you mean the match on the |
@PrestonFrom in the cases the inner |
@cjgillot The outer match currently uses |
r=me after squashing commits. |
Addresses Issue 95665 by including `hir::Node::ForeignItem` as a valid type to visit in `diagnostic_hir_wf_check`. Fixes rust-lang#95665
r? @petrochenkov |
Thanks! |
📌 Commit f725b97 has been approved by |
Rollup of 8 pull requests Successful merges: - rust-lang#93080 (Implement `core::slice::IterMut::as_mut_slice` and `impl<T> AsMut<[T]> for IterMut<'_, T>`) - rust-lang#94855 (Panic when advance_slices()'ing too far and update docs.) - rust-lang#96609 (Add `{Arc, Rc}::downcast_unchecked`) - rust-lang#96719 (Fix the generator example for `pin!()`) - rust-lang#97149 (Windows: `CommandExt::async_pipes`) - rust-lang#97150 (`Stdio::makes_pipe`) - rust-lang#97837 (Document Rust's stance on `/proc/self/mem`) - rust-lang#98159 (Include ForeignItem when visiting types for WF check) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Addresses Issue 95665 by including
hir::Node::ForeignItem
as a validtype to visit in
diagnostic_hir_wf_check
.Fixes #95665