Give TypeInfo fields and methods more appropriate names
This commit is contained in:
parent
8afa2722b2
commit
b96f1adf5c
30 changed files with 76 additions and 74 deletions
|
|
@ -119,7 +119,7 @@ fn call_info_impl(
|
|||
|
||||
let callable = match &calling_node {
|
||||
FnCallNode::CallExpr(call) => {
|
||||
sema.type_of_expr(&call.expr()?)?.coerced().as_callable(sema.db)?
|
||||
sema.type_of_expr(&call.expr()?)?.adjusted().as_callable(sema.db)?
|
||||
}
|
||||
FnCallNode::MethodCallExpr(call) => sema.resolve_method_call_as_callable(call)?,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -543,7 +543,7 @@ impl ImportCandidate {
|
|||
match sema.resolve_method_call(method_call) {
|
||||
Some(_) => None,
|
||||
None => Some(Self::TraitMethod(TraitImportCandidate {
|
||||
receiver_ty: sema.type_of_expr(&method_call.receiver()?)?.coerced(),
|
||||
receiver_ty: sema.type_of_expr(&method_call.receiver()?)?.adjusted(),
|
||||
assoc_item_name: NameToImport::Exact(method_call.name_ref()?.to_string()),
|
||||
})),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue