about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
AgeCommit message (Collapse)AuthorLines
2025-08-21tests/rustdoc-js-std/parser-errors.js: remove syntax that is now validbinarycat-8/+0
2025-08-15rustdoc-search: search backend with partitioned suffix treeMichael Howell-9/+9
2024-11-15rustdoc search: allow queries to end in an empty path segmentbinarycat-8/+0
fixes https://github.com/rust-lang/rust/issues/129707 this can be used to show all items in a module, or all associated items for a type. currently sufferes slightly due to case insensitivity, so `Option::` will also show items in the `option::` module. it disables the checking of the last path element, otherwise only items with short names will be shown
2024-10-30rustdoc-search: pass original names through ASTMichael Howell-106/+53
2024-09-05rustdoc-search: allow trailing `Foo ->` arg searchMichael Howell-9/+0
2024-06-07Update testsSunshine-7/+16
2024-03-11rustdoc-search: add search query syntax `Fn(T) -> U`Michael Howell-3/+12
This is implemented, in addition to the ML-style one, because Rust does it. If we don't, we'll never hear the end of it. This commit also refactors some duplicate parts of the parser into a dedicated function.
2024-03-11rustdoc-search: parse and search with ML-style HOFMichael Howell-2/+2
Option::map, for example, looks like this: option<t>, (t -> u) -> option<u> This syntax searches all of the HOFs in Rust: traits Fn, FnOnce, and FnMut, and bare fn primitives.
2023-12-26rustdoc: search for tuples and unit by type with `()`Michael Howell-13/+4
2023-11-29rustdoc-search: replace TAB/NL/LF with SP firstMichael Howell-0/+9
This way, most of the parsing code doesn't need to be designed to handle it, since they should always be treated exactly the same anyhow.
2023-11-29rustdoc-search: removed dead parser codeMichael Howell-0/+9
This is already covered by the normal unexpected char path.
2023-11-29rustdoc-search: allow `:: ` and ` ::`Michael Howell-18/+9
This restriction made sense back when spaces separated function parameters, but now that they separate path components, there's no real ambiguity any more. Additionally, the Rust language allows it.
2023-11-19rustdoc-search: add support for associated typesMichael Howell-1/+1
2023-06-14Fix eBNF and handling of whitespace characters when not in a pathGuillaume Gomez-1/+105
2023-06-14Update rustdoc-js-std testsGuillaume Gomez-21/+75
2023-06-12rustdoc-search: search never type with `!`Michael Howell-0/+9
This feature extends rustdoc to support the syntax that most users will naturally attempt to use to search for diverging functions. Part of #60485 It's already possible to do this search with `primitive:never`, but that's not what the Rust language itself uses, so nobody will try it if they aren't told or helped along.
2023-06-09Update rustdoc-js* formatGuillaume Gomez-45/+42
2023-03-20rustdoc: add support for type filters in arguments and genericsMichael Howell-45/+13
This makes sense, since the search index has the information in it, and it's more useful for function signature searches since a function signature search's item type is, by definition, some type of function (there's more than one, but not very many).
2023-03-03Add test for unclosed genericGuillaume Gomez-0/+10
2023-03-02Add GUI test for rustdoc search errors backgroundGuillaume Gomez-2/+2
2023-02-16rustdoc: search by macro when query ends with `!`Michael Howell-0/+20
Related to #96399
2023-01-11Move /src/test to /testsAlbert Larsan-0/+385