check arg_idx >= n_params only if arg_idx >= n_required_params
@@ -181,7 +181,6 @@ pub(crate) fn complete_type_path(
acc.add_type_alias_with_eq(ctx, alias);
}
});
- }
let n_params =
trait_.type_or_const_param_count(ctx.sema.db, false);
@@ -193,6 +192,7 @@ pub(crate) fn complete_type_path(
}
}
}
+ }
_ => {}
};
