about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-03-24 18:13:09 -0500
committerGitHub <noreply@github.com>2017-03-24 18:13:09 -0500
commit667e3166d896766b7233bdc40715397b2e877bfa (patch)
tree3cadf0d882e3115333b958628484e2fb69c1214d /src/rustllvm/RustWrapper.cpp
parent8cf8fc9d8973a4d523c01dcba2ef991e0f2393d7 (diff)
parentc09083c3d1b077df9adf3d6b4048677a15ba666e (diff)
downloadrust-667e3166d896766b7233bdc40715397b2e877bfa.tar.gz
rust-667e3166d896766b7233bdc40715397b2e877bfa.zip
Rollup merge of #40567 - clarcharr:rustdoc-sort, r=frewsxcv
Fix for #39596: sort Trait2 before Trait10.

This is a change discussed in #39596. Essentially, item names will be sorted as if they're (&str, u64) pairs instead of just `&str`, meaning that `"Apple" < "Banana"` and also `"Fruit10" > "Fruit2"`.

Sample sorting:

1. Apple
2. Banana
3. Fruit
4. Fruit0
5. Fruit00
6. Fruit1
7. Fruit01
8. Fruit2
9. Fruit02
10. Fruit20
11. Fruit100
12. Pear

Examples of generated documentation:
https://docs.charr.xyz/before-doc/test_sorting/
https://docs.charr.xyz/after-doc/test_sorting/

Screenshots of generated documentation:
Before: http://imgur.com/Ktb10ti
After: http://imgur.com/CZJjqIN
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions