mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Use async block in async fn type inference
This commit is contained in:
parent
853fb44a24
commit
8a6ca86247
7 changed files with 68 additions and 57 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue