mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-27 02:06:57 +00:00
Split assoc items out of trait_data/impl_data queries
This commit is contained in:
parent
185f9deb45
commit
12f54eec27
34 changed files with 446 additions and 397 deletions
|
|
@ -1261,7 +1261,7 @@ impl Evaluator<'_> {
|
|||
if let Some(target) = self.db.lang_item(self.crate_id, LangItem::FnOnce) {
|
||||
if let Some(def) = target.as_trait().and_then(|it| {
|
||||
self.db
|
||||
.trait_data(it)
|
||||
.trait_items(it)
|
||||
.method_by_name(&Name::new_symbol_root(sym::call_once.clone()))
|
||||
}) {
|
||||
self.exec_fn_trait(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue