Skip to content

Commit 523f413

Browse files
committed
search.js: give type annotation to newSolutions
1 parent 4a00a84 commit 523f413

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/librustdoc/html/static/js/search.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3990,7 +3990,7 @@ class DocSearch {
39903990
}
39913991
const fnTypeBindings = fnType.bindings.get(name);
39923992
mgensSolutionSet = mgensSolutionSet.flatMap(mgens => {
3993-
// @ts-expect-error
3993+
/** @type{Array<Map<number, number> | null>} */
39943994
const newSolutions = [];
39953995
unifyFunctionTypes(
39963996
// @ts-expect-error
@@ -4006,7 +4006,6 @@ class DocSearch {
40064006
},
40074007
unboxingDepth,
40084008
);
4009-
// @ts-expect-error
40104009
return newSolutions;
40114010
});
40124011
}
@@ -4254,6 +4253,7 @@ class DocSearch {
42544253
return false;
42554254
}
42564255

4256+
// this does not yet have a type in `rustdoc.d.ts`.
42574257
// @ts-expect-error
42584258
function createAliasFromItem(item) {
42594259
return {

0 commit comments

Comments
 (0)