mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
add better default behavior on fill struct fields diagnostic
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
This commit is contained in:
parent
336c899a07
commit
f4ce0d78bb
4 changed files with 103 additions and 38 deletions
|
@ -542,6 +542,7 @@ pub fn iterate_method_candidates_dyn(
|
|||
|
||||
let deref_chain = autoderef_method_receiver(db, krate, ty);
|
||||
let mut deref_chains = stdx::slice_tails(&deref_chain);
|
||||
|
||||
deref_chains.try_for_each(|deref_chain| {
|
||||
iterate_method_candidates_with_autoref(
|
||||
deref_chain,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue