diff options
| author | Michael Howell <michael@notriddle.com> | 2023-12-15 13:28:43 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-12-15 16:26:35 -0700 |
| commit | 6b69ebcae0170c16e64d77939e47e3412c1637eb (patch) | |
| tree | 10a61fe20bd6efec526a13be432ce5d7b410927f /tests/rustdoc-js | |
| parent | e6707df0de337976dce7577e68fc57adcd5e4842 (diff) | |
| download | rust-6b69ebcae0170c16e64d77939e47e3412c1637eb.tar.gz rust-6b69ebcae0170c16e64d77939e47e3412c1637eb.zip | |
rustdoc-search: remove parallel searchWords array
This might have made sense if the algorithm could use `searchWords` to skip having to look at `searchIndex`, but since it always does a substring check on both the stock word and the normalizedName, it doesn't seem to help performance anyway.
Diffstat (limited to 'tests/rustdoc-js')
| -rw-r--r-- | tests/rustdoc-js/substring.js | 22 | ||||
| -rw-r--r-- | tests/rustdoc-js/substring.rs | 2 |
2 files changed, 17 insertions, 7 deletions
diff --git a/tests/rustdoc-js/substring.js b/tests/rustdoc-js/substring.js index 96efa992bb6..b791ac4bfd1 100644 --- a/tests/rustdoc-js/substring.js +++ b/tests/rustdoc-js/substring.js @@ -1,7 +1,15 @@ -const EXPECTED = { - 'query': 'waker_from', - 'others': [ - { 'path': 'substring::SuperWaker', 'name': 'local_waker_from_nonlocal' }, - { 'path': 'substring::SuperWakerTask', 'name': 'local_waker_from_nonlocal' }, - ], -}; +const EXPECTED = [ + { + 'query': 'waker_from', + 'others': [ + { 'path': 'substring::SuperWaker', 'name': 'local_waker_from_nonlocal' }, + { 'path': 'substring::SuperWakerTask', 'name': 'local_waker_from_nonlocal' }, + ], + }, + { + 'query': 'my', + 'others': [ + { 'path': 'substring', 'name': 'm_y_substringmatching' }, + ], + }, +]; diff --git a/tests/rustdoc-js/substring.rs b/tests/rustdoc-js/substring.rs index e729c722c79..ea88894d03d 100644 --- a/tests/rustdoc-js/substring.rs +++ b/tests/rustdoc-js/substring.rs @@ -19,3 +19,5 @@ impl SuperWakerTask { pub fn waker_non_local() {} pub fn from_non_local() {} } + +pub fn m_y_substringmatching() {} |
