Reame PlaceholderType -> InferType

This commit is contained in:
Aleksey Kladov 2020-07-31 13:22:47 +02:00
parent 08ea2271e8
commit a6e45c6c69
10 changed files with 28 additions and 28 deletions

View file

@ -46,7 +46,7 @@ pub(crate) fn add_explicit_type(acc: &mut Assists, ctx: &AssistContext) -> Optio
// and it has no placeholders
let ascribed_ty = let_stmt.ty();
if let Some(ty) = &ascribed_ty {
if ty.syntax().descendants().find_map(ast::PlaceholderType::cast).is_none() {
if ty.syntax().descendants().find_map(ast::InferType::cast).is_none() {
return None;
}
}