Skip to content

Commit

Permalink
Fix after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Aug 14, 2024
1 parent b88b7c0 commit 42d0560
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tooling/lsp/src/requests/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ impl<'a> NodeFinder<'a> {
| Type::TypeVariable(_, _)
| Type::TraitAsType(_, _, _)
| Type::NamedGeneric(_, _, _)
| Type::Function(_, _, _)
| Type::Function(..)
| Type::Forall(_, _)
| Type::Constant(_)
| Type::Quoted(_)
Expand Down Expand Up @@ -1560,8 +1560,11 @@ fn func_meta_type_to_string(func_meta: &FuncMeta, has_self_type: bool) -> String
typ = typ_;
}

if let Type::Function(args, ret, _env) = typ {
if let Type::Function(args, ret, _env, unconstrained) = typ {
let mut string = String::new();
if *unconstrained {
string.push_str("unconstrained ");
}
string.push_str("fn(");
for (index, arg) in args.iter().enumerate() {
if index > 0 {
Expand Down

0 comments on commit 42d0560

Please sign in to comment.