about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-03 01:52:15 +0000
committerbors <bors@rust-lang.org>2023-09-03 01:52:15 +0000
commit3ec4b3bc8c18fc217cd8d90426024f1ec1fd4a6a (patch)
treebc69d68e898a36d6ba30e5c0fea1470459d64bed /compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp
parentb58864120834b04876caa6798e7e323cf2674ed1 (diff)
parente161fa1a6b3752da0a9279298eedf5b84a5fe49f (diff)
downloadrust-3ec4b3bc8c18fc217cd8d90426024f1ec1fd4a6a.tar.gz
rust-3ec4b3bc8c18fc217cd8d90426024f1ec1fd4a6a.zip
Auto merge of #115436 - GuillaumeGomez:fix-type-based-search, r=notriddle
[rustdoc] Fix type based search

Fixes https://github.com/rust-lang/rust/issues/114522.

The problem was a bit more tricky than I originally thought it would be: we only kept type ID and generics in short, but as soon as there was a full path in the user query, the element didn't get an ID anymore because the ID map didn't know about `x::y` (although it knew about `y`). So for this first problem, I instead always pass the element name to get the ID.

Then a new problem occurred: we actually needed to check if paths matched, otherwise whatever the path, as long as the "end types" match, it's all good. meaning, we needed to add path information, but to do so, we needed it to be added into the search index directly as there was no mapping between `"p"` and `"q"`.

I hope this explanation makes sense to someone else than me. ^^'

r? `@notriddle`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp')
0 files changed, 0 insertions, 0 deletions