rust/src/tools
bors f4c675c476 Auto merge of #69402 - GuillaumeGomez:extend-search, r=kinnison
Extend search

I realized that when looking for "struct:String" in the rustdoc search for example, the "in arguments" and "returned" tabs were always empty. After some investigation, I realized it was because we only provided the name, and not the type, making it impossible to pass the "type filtering" check.

To resolve this, I added the type alongside the name. Note for the future: we could improve this by instead only registering the path id and use the path dictionary directly. The only problem with that solution (which I already tested) is that it becomes complicated for types in other crates. It'd force us to handle both case with an id and a case with `(name, type)`. I found the current PR big enough to not want to provide it directly. However, I think this is definitely worth it to make it work this way in the future.

About the two tests I added: they don't have much interest except checking that we actually have something returned in the search in the cases of a type filtering with and without literal search.

I also had to update a bit the test script to add the new locally global (haha) variable I created (`NO_TYPE_FILTER`). I added this variable to make the code easier to read than just "-1".

r? @kinnison

cc @ollie27
2020-03-19 16:07:59 +00:00
..
build-manifest Rollup merge of #68253 - japaric:bare-metal-cortex-a, r=alexcrichton 2020-01-22 16:02:09 -08:00
cargo@7019b3ed3d Update cargo 2020-03-17 20:33:07 -07:00
cargotest Format the world 2019-12-22 17:42:47 -05:00
clippy@23549a8c36 submodules: update clippy from 8485d40a to 23549a8c 2020-03-16 19:06:15 +01:00
compiletest Rollup merge of #69964 - ollie27:ci_nodejs, r=Mark-Simulacrum,GuillaumeGomez 2020-03-16 01:30:33 +01:00
error_index_generator Rename syntax to rustc_ast in source code 2020-02-29 21:59:09 +03:00
linkchecker Add shared script for linkchecking books. 2020-02-13 09:50:20 -08:00
miri@0ff05c4cfe update miri 2020-03-19 09:08:13 +01:00
remote-test-client Format the world 2019-12-22 17:42:47 -05:00
remote-test-server Format the world 2019-12-22 17:42:47 -05:00
rls@5fde462d8c submodules: update rls from 10bf331 to 5fde462 2020-02-24 13:47:34 +01:00
rust-installer@9f66c14c3f Update rust-installer to limit memory use 2019-08-28 14:48:02 -07:00
rustbook Auto merge of #69115 - ehuss:update-books, r=Dylan-DPC 2020-02-14 19:59:05 +00:00
rustc-std-workspace-alloc Update version of rustc-std-workspace-* crates 2019-09-09 13:02:10 -07:00
rustc-std-workspace-core Update version of rustc-std-workspace-* crates 2019-09-09 13:02:10 -07:00
rustc-std-workspace-std Update version of rustc-std-workspace-* crates 2019-09-09 13:02:10 -07:00
rustc-workspace-hack Update cargo, rls 2020-01-14 09:47:04 -08:00
rustdoc Format the world 2019-12-22 17:42:47 -05:00
rustdoc-js Add missing variable to load in non-std tester as well 2020-03-16 21:50:04 +01:00
rustdoc-js-std Add tests for new of variables 2020-03-16 18:30:26 +01:00
rustdoc-themes Format the world 2019-12-22 17:42:47 -05:00
rustfmt@9f53665f91 Update RLS and Rustfmt 2020-02-12 15:47:38 +01:00
tidy Rollup merge of #69443 - ehuss:tidy-license, r=skade,Mark-Simulacrum 2020-03-19 06:57:30 +01:00
unicode-table-generator Use .next() instead of .nth(0) on iterators. 2020-03-03 03:15:03 +01:00
unstable-book-gen Format the world 2019-12-22 17:42:47 -05:00
publish_toolstate.py more toolstate comments 2020-03-04 08:30:26 -08:00