mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
show variadic args in hover function signature
This commit is contained in:
parent
908c17bfa6
commit
49fab593ad
2 changed files with 29 additions and 0 deletions
|
@ -86,6 +86,11 @@ impl HirDisplay for Function {
|
|||
// The former will ignore lifetime arguments currently.
|
||||
type_ref.hir_fmt(f)?;
|
||||
}
|
||||
|
||||
if data.is_varargs() {
|
||||
write!(f, ", ...")?;
|
||||
}
|
||||
|
||||
write!(f, ")")?;
|
||||
|
||||
// `FunctionData::ret_type` will be `::core::future::Future<Output = ...>` for async fns.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue