about summary refs log tree commit diff
path: root/src/librustdoc/html/static
diff options
context:
space:
mode:
authorbinarycat <binarycat@envs.net>2025-03-24 18:40:06 -0500
committerbinarycat <binarycat@envs.net>2025-03-24 18:40:06 -0500
commit523f413a738822d0312ea82ea69b21b6900af68a (patch)
treea4f355cab9d545e9e0a88409e9844cfeeeca2e91 /src/librustdoc/html/static
parent4a00a8449e3603823f5d0c5d01afc4425ed4b448 (diff)
downloadrust-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.js4
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 {