diff options
| author | Kang Seonghoon <public+git@mearie.org> | 2014-04-15 03:39:59 +0900 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-04-15 19:45:00 -0700 |
| commit | 326f938730c1eaae48ed333907dce2cc92dc9aab (patch) | |
| tree | 535d8680b57c46a97ece228b50c23713aa9fb584 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | ea5d9088ad36d08671a5ac77697e9ba7f4340b1a (diff) | |
| download | rust-326f938730c1eaae48ed333907dce2cc92dc9aab.tar.gz rust-326f938730c1eaae48ed333907dce2cc92dc9aab.zip | |
rustdoc: Better sorting criteria for searching.
This essentially rewrites the sorting algorithm, which relied on the implementation-defined handling of non-consistent sorting function (cf. ECMA-262 5th edition, section 15.4.4.11) and was also a bit inefficient. The new criteria expands the prior criteria while adding these ones: - The current crate is always preferred over other crates. (Closes #13178) - An item with a description is preferred over one without it, if item names match. This is a heuristic assuming that the documented item is more likely to be relevant. - An item with no literal occurrence of search query is handled correctly.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
