about summary refs log tree commit diff
path: root/tests/rustdoc-js-std
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2024-04-18 22:20:08 -0700
committerMichael Howell <michael@notriddle.com>2024-04-18 22:21:29 -0700
commit2e7d9e9acbdb48620e347529796bf1e35fd97c19 (patch)
tree7928486119f5808e3c917d89f8ac1e4385f9222e /tests/rustdoc-js-std
parentfa0068b5412baecc932772dda72c0621bfa7ab00 (diff)
downloadrust-2e7d9e9acbdb48620e347529796bf1e35fd97c19.tar.gz
rust-2e7d9e9acbdb48620e347529796bf1e35fd97c19.zip
rustdoc-search: fix description on aliases in results
This needs to start downloading the descriptions after aliases
have been added to the result set.
Diffstat (limited to 'tests/rustdoc-js-std')
-rw-r--r--tests/rustdoc-js-std/alias-1.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/rustdoc-js-std/alias-1.js b/tests/rustdoc-js-std/alias-1.js
index b27b3da2179..c31d1a3b1ad 100644
--- a/tests/rustdoc-js-std/alias-1.js
+++ b/tests/rustdoc-js-std/alias-1.js
@@ -1,6 +1,10 @@
 const EXPECTED = {
     'query': '&',
     'others': [
-        { 'path': 'std', 'name': 'reference' },
+        {
+            'path': 'std',
+            'name': 'reference',
+            'desc': "References, <code>&amp;T</code> and <code>&amp;mut T</code>.",
+        },
     ],
 };