diff options
| author | binarycat <binarycat@envs.net> | 2025-03-24 18:40:06 -0500 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-03-24 18:40:06 -0500 |
| commit | 523f413a738822d0312ea82ea69b21b6900af68a (patch) | |
| tree | a4f355cab9d545e9e0a88409e9844cfeeeca2e91 /src/librustdoc/html/static | |
| parent | 4a00a8449e3603823f5d0c5d01afc4425ed4b448 (diff) | |
| download | rust-523f413a738822d0312ea82ea69b21b6900af68a.tar.gz rust-523f413a738822d0312ea82ea69b21b6900af68a.zip | |
search.js: give type annotation to newSolutions
Diffstat (limited to 'src/librustdoc/html/static')
| -rw-r--r-- | src/librustdoc/html/static/js/search.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/static/js/search.js b/src/librustdoc/html/static/js/search.js index 1ba34027a0a..a54104c3809 100644 --- a/src/librustdoc/html/static/js/search.js +++ b/src/librustdoc/html/static/js/search.js @@ -3990,7 +3990,7 @@ class DocSearch { } const fnTypeBindings = fnType.bindings.get(name); mgensSolutionSet = mgensSolutionSet.flatMap(mgens => { - // @ts-expect-error + /** @type{Array<Map<number, number> | null>} */ const newSolutions = []; unifyFunctionTypes( // @ts-expect-error @@ -4006,7 +4006,6 @@ class DocSearch { }, unboxingDepth, ); - // @ts-expect-error return newSolutions; }); } @@ -4254,6 +4253,7 @@ class DocSearch { return false; } + // this does not yet have a type in `rustdoc.d.ts`. // @ts-expect-error function createAliasFromItem(item) { return { |
