mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Revise TypeInfo::ty usage
This commit is contained in:
parent
25ff7171c4
commit
8afa2722b2
18 changed files with 30 additions and 29 deletions
|
@ -331,7 +331,7 @@ fn fn_arg_type(
|
|||
target_module: hir::Module,
|
||||
fn_arg: &ast::Expr,
|
||||
) -> Option<String> {
|
||||
let ty = ctx.sema.type_of_expr(fn_arg)?.ty;
|
||||
let ty = ctx.sema.type_of_expr(fn_arg)?.coerced();
|
||||
if ty.is_unknown() {
|
||||
return None;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue