mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Show fn traits in signature info for trait implementors
This commit is contained in:
parent
0de904d539
commit
7bd343e085
8 changed files with 195 additions and 67 deletions
|
@ -307,7 +307,8 @@ impl SourceAnalyzer {
|
|||
db: &dyn HirDatabase,
|
||||
call: &ast::Expr,
|
||||
) -> Option<Callable> {
|
||||
self.type_of_expr(db, &call.clone())?.0.as_callable(db)
|
||||
let (orig, adjusted) = self.type_of_expr(db, &call.clone())?;
|
||||
adjusted.unwrap_or(orig).as_callable(db)
|
||||
}
|
||||
|
||||
pub(crate) fn resolve_field(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue