Use async block in async fn type inference

This commit is contained in:
hkalbasi 2023-04-01 04:35:28 +03:30
parent 853fb44a24
commit 8a6ca86247
7 changed files with 68 additions and 57 deletions

View file

@ -30,7 +30,6 @@ pub struct FunctionData {
pub name: Name,
pub params: Vec<(Option<Name>, Interned<TypeRef>)>,
pub ret_type: Interned<TypeRef>,
pub async_ret_type: Option<Interned<TypeRef>>,
pub attrs: Attrs,
pub visibility: RawVisibility,
pub abi: Option<Interned<str>>,
@ -104,7 +103,6 @@ impl FunctionData {
})
.collect(),
ret_type: func.ret_type.clone(),
async_ret_type: func.async_ret_type.clone(),
attrs: item_tree.attrs(db, krate, ModItem::from(loc.id.value).into()),
visibility,
abi: func.abi.clone(),