about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/ide-db
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2024-05-18 16:22:59 +0200
committerLukas Wirth <lukastw97@gmail.com>2024-05-18 16:22:59 +0200
commit6438554bce9ad9cc378986d89ff0bea0cebd239b (patch)
tree28d27519b461176a193e578631a8dc47d0419dd3 /src/tools/rust-analyzer/crates/ide-db
parentf42e55dfc8378010144183f5985a7e48e9378c9a (diff)
downloadrust-6438554bce9ad9cc378986d89ff0bea0cebd239b.tar.gz
rust-6438554bce9ad9cc378986d89ff0bea0cebd239b.zip
Show fn traits in signature info for trait implementors
Diffstat (limited to 'src/tools/rust-analyzer/crates/ide-db')
-rw-r--r--src/tools/rust-analyzer/crates/ide-db/src/active_parameter.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tools/rust-analyzer/crates/ide-db/src/active_parameter.rs b/src/tools/rust-analyzer/crates/ide-db/src/active_parameter.rs
index abc60a77a56..98d2e817546 100644
--- a/src/tools/rust-analyzer/crates/ide-db/src/active_parameter.rs
+++ b/src/tools/rust-analyzer/crates/ide-db/src/active_parameter.rs
@@ -60,10 +60,7 @@ pub fn callable_for_node(
     token: &SyntaxToken,
 ) -> Option<(hir::Callable, Option<usize>)> {
     let callable = match calling_node {
-        ast::CallableExpr::Call(call) => {
-            let expr = call.expr()?;
-            sema.type_of_expr(&expr)?.adjusted().as_callable(sema.db)
-        }
+        ast::CallableExpr::Call(call) => sema.resolve_expr_as_callable(&call.expr()?),
         ast::CallableExpr::MethodCall(call) => sema.resolve_method_call_as_callable(call),
     }?;
     let active_param = calling_node.arg_list().map(|arg_list| {