mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
fix: Complete functions and methods from block level impls
This commit is contained in:
parent
dbd5a70ea3
commit
d7a544e69a
19 changed files with 160 additions and 72 deletions
|
@ -505,6 +505,7 @@ fn trait_applicable_items(
|
|||
current_crate,
|
||||
&trait_candidates,
|
||||
None,
|
||||
None,
|
||||
|_, assoc| {
|
||||
if required_assoc_items.contains(&assoc) {
|
||||
if let AssocItem::Function(f) = assoc {
|
||||
|
@ -531,6 +532,7 @@ fn trait_applicable_items(
|
|||
current_crate,
|
||||
&trait_candidates,
|
||||
None,
|
||||
None,
|
||||
|_, function| {
|
||||
let assoc = function.as_assoc_item(db)?;
|
||||
if required_assoc_items.contains(&assoc) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue