Commit graph

63 commits

Author SHA1 Message Date
Guillaume Gomez
eb2dd95041 Add regression test for reexports in search results 2022-10-30 13:58:00 +01:00
Michael Howell
14d8baf365 rustdoc: also index raw pointers
Co-authored-by: Noah Lev <camelidcamel@gmail.com>
2022-05-31 11:21:55 -07:00
Michael Howell
59d35d6e90 rustdoc: also index impl trait 2022-05-31 11:13:24 -07:00
Michael Howell
c516ffa8e5 Adjust test case to account for 6c8a2d4 2022-05-25 11:01:43 -07:00
Michael Howell
b9ed8784b3 rustdoc: include impl generics / self in search index 2022-05-25 11:01:43 -07:00
Michael Howell
d3fd6bfd30 rustdoc: fix GUI crash when searching for magic JS property values 2022-05-12 14:15:31 -07:00
Yuki Okushi
ed9faeedda
Rollup merge of #96887 - notriddle:notriddle/as-raw-fd, r=jsha
rustdoc: correct path to type alias methods

Fixes #83991
2022-05-11 13:16:31 +09:00
Michael Howell
6257bd2f4e rustdoc: clean up method path index
This removes a special case that doesn't seem to do anything
any more.
2022-05-10 08:59:59 -07:00
Michael Howell
360d6e4b7d rustdoc: search result ranking fix 2022-05-09 11:49:05 -07:00
Guillaume Gomez
c7de1a16f8 Improve documentation and add some explanations in the code 2022-04-18 20:59:09 +02:00
Guillaume Gomez
264064df36 * Greatly improve the rustdoc search parser source code
* Move all functions outside parseQuery
2022-04-18 20:59:08 +02:00
Guillaume Gomez
51de26cfd9 * If type filter is in quotes, throw an error.
* If there are generics, don't allow to have quotes.
2022-04-18 20:59:08 +02:00
Guillaume Gomez
f5833e759e Add parser tests 2022-04-18 20:59:08 +02:00
Guillaume Gomez
0f51652ad3 Update tests 2022-04-18 20:59:08 +02:00
Michael Howell
f5cdfb47e5 rustdoc: add test case for multiple traits and erased names
https://github.com/rust-lang/rust/pull/92339#discussion_r792805289
2022-01-26 13:03:31 -07:00
Noah Lev
ac88bb7525 Fix warnings in rustdoc JS tests 2021-11-28 11:49:12 -08:00
Guillaume Gomez
355e6eddfe Fix invalid handling of generics 2021-10-29 20:54:15 +02:00
Michael Howell
cedd2425b6 fix(rustdoc): generics search
This commit adds a test case for generics, re-adds generics data
to the search index, and tweaks function indexing to use less space in JSON.

This reverts commit 14ca89446c.
2021-07-01 06:40:27 -07:00
Michael Howell
f67585d494 Update test cases for intra-doc links in summaries 2021-06-18 17:47:05 -07:00
Guillaume Gomez
d5243e3a97 Add test for primitive search 2021-02-01 15:56:51 +01:00
Camelid
f0cf5a974e Add more rustdoc-js test cases 2020-12-03 14:11:37 -08:00
Camelid
b9035194c0 Add rustdoc-js test
Finally!
2020-12-03 14:11:37 -08:00
Guillaume Gomez
d61ea56884 Clean up rustdoc tests by removing unnecessary features 2020-11-25 14:27:51 +01:00
Guillaume Gomez
accc26abc0 Add test for whitespace in doc alias 2020-10-05 16:37:13 +02:00
Guillaume Gomez
fc6fb3fb8f Allow #[doc(alias)] on impl const items 2020-08-12 11:09:24 +02:00
Guillaume Gomez
9d252ba928 Remove invalid #[doc(alias)] from doc-alias search-index test 2020-08-11 23:21:05 +02:00
Oliver Middleton
478750c1db rustdoc: Fix doc aliases with crate filtering
Fix a crash when searching for an alias contained in the currently selected filter crate.

Also remove alias search results for crates that should be filtered out.

The test suite needed to be fixed to actually take into account the crate filtering and check that there are no results when none are expected.
2020-06-23 09:27:37 +01:00
Guillaume Gomez
c4d9318be6 Make current crate aliases go first 2020-05-14 11:36:02 +02:00
Guillaume Gomez
3a0727e84e Add more tests for doc aliases 2020-05-07 20:08:08 +02:00
Guillaume Gomez
8ee30dbc1b Add tests for struct variant field in search 2020-02-02 19:18:31 +01:00
Shiqing
cb84aa4744 Improve searching in rustdoc and add tests 2019-09-04 21:27:13 +08:00
bors
5b96425699 Auto merge of #59910 - Centril:rollup-yjv7b06, r=Centril
Rollup of 15 pull requests

Successful merges:

 - #59680 (Document the -Z flag to the rustc book)
 - #59711 (Add back the substring test)
 - #59806 (compiletest: Improve no_prefer_dynamic docs)
 - #59809 (Make trait_methods_not_found use a lock)
 - #59811 (Kill dead code dominator code.)
 - #59814 (Fix broken links on std::boxed doc page)
 - #59821 (improve unknown enum variant errors)
 - #59831 (Remove strange formatting in `Ordering` docs.)
 - #59836 (std::ops::Div examples: correct nominator to numerator)
 - #59857 (SGX target: fix cfg(test) build)
 - #59876 (Update TRPL to use mdbook 0.2)
 - #59880 (Remove note about transmute for float bitpatterns.)
 - #59889 (Update diagnostics.rs)
 - #59891 (Fix the link to sort_by_cached_key)
 - #59894 (save-analysis: Pull associated type definition using `qpath_def`)

Failed merges:

r? @ghost
2019-04-12 11:46:01 +00:00
Guillaume Gomez
894142de5d Add back the substring test 2019-04-04 22:28:52 +02:00
Guillaume Gomez
19073676bf Ensure that exact matches come first in rustdoc search 2019-04-02 00:09:27 +02:00
Guillaume Gomez
405d950802 Move rustdoc-js testing into compiletest 2019-02-28 18:08:48 +01:00
Guillaume Gomez
aa3ca321e9 Rename rustdoc js test suites 2019-02-25 17:46:06 +01:00
Matthias Einwag
1ef34a5a39 Remove rustdoc test which referenced unstable API 2019-02-09 12:09:12 -08:00
Mark Rousskov
2a663555dd Remove licenses 2018-12-25 21:08:33 -07:00
Guillaume Gomez
3f253f5394 Improve filter test 2018-12-03 23:05:09 +01:00
Guillaume Gomez
8062c7ae4b Add test for crate filtering 2018-11-28 19:33:33 +01:00
Taylor Cramer
403d12d696 Remove outdated rustdoc PinBox tests 2018-09-18 01:42:27 -07:00
bors
8c2b371ebc Auto merge of #53227 - nivkner:pin_move, r=RalfJung
move the Pin API into its own module for centralized documentation

This implements the change proposed by @withoutboats in #49150, as suggested by @RalfJung in the review of #53104,
along with the documentation that was originally in it, that was deemed more appropriate in module-level documentation.

r? @RalfJung
2018-08-27 22:56:15 +00:00
Niv Kaminer
971d7ed249 move PinBox into pin module and export through std 2018-08-23 01:37:03 +03:00
Guillaume Gomez
e87b4b3100 Search a substring instead of start of string in rustdoc search 2018-08-22 00:21:08 +02:00
Alex Crichton
d77defcca1 Update stdsimd to undo an accidental stabilization
Closes #52403
2018-07-20 22:34:09 -07:00
Simon Sapin
1acbb0a935 Make raw_vec perma-unstable and hidden 2018-06-29 14:01:33 +02:00
Guillaume Gomez
afeb790ea1 Fix macro missing from doc search 2018-06-16 14:14:18 +02:00
Guillaume Gomez
1fcce48451 Add rustdoc-js tester should-fail option 2018-06-16 00:13:28 +02:00
Guillaume Gomez
f2bc09e68b Fix invalid deduplication 2018-05-12 19:16:37 +02:00
Guillaume Gomez
2c91b49fe4 Add exact-check option to rustdoc-js tests 2018-05-09 19:17:13 +02:00