File tree Expand file tree Collapse file tree 4 files changed +11
-1
lines changed Expand file tree Collapse file tree 4 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2368,6 +2368,12 @@ dependencies = [
23682368name = " miropt-test-tools"
23692369version = " 0.1.0"
23702370
2371+ [[package ]]
2372+ name = " natord"
2373+ version = " 1.0.9"
2374+ source = " registry+https://github.com/rust-lang/crates.io-index"
2375+ checksum = " 308d96db8debc727c3fd9744aac51751243420e46edf401010908da7f8d5e57c"
2376+
23712377[[package ]]
23722378name = " new_debug_unreachable"
23732379version = " 1.0.6"
@@ -4725,6 +4731,7 @@ dependencies = [
47254731 " indexmap" ,
47264732 " itertools" ,
47274733 " minifier" ,
4734+ " natord" ,
47284735 " pulldown-cmark 0.9.6" ,
47294736 " regex" ,
47304737 " rinja" ,
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ tracing = "0.1"
2525tracing-tree = " 0.3.0"
2626threadpool = " 1.8.1"
2727unicode-segmentation = " 1.9"
28+ natord = " 1.0.9"
2829
2930[dependencies .tracing-subscriber ]
3031version = " 0.3.3"
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ fn sidebar_trait<'a>(
297297 . filter_map ( |i| super :: extract_for_impl_name ( & i. impl_item , cx) )
298298 . map ( |( name, id) | Link :: new ( id, name) ) ,
299299 ) ;
300- foreign_impls. sort ( ) ;
300+ foreign_impls. sort_by ( |a , b| natord :: compare ( & a . name , & b . name ) ) ;
301301 }
302302
303303 blocks. extend (
Original file line number Diff line number Diff line change 77//@ has - '//h2[@id="foreign-impls"]' 'Implementations on Foreign Types'
88//@ has - '//*[@class="sidebar-elems"]//section//a[@href="#impl-Foo-for-u32"]' 'u32'
99//@ has - '//*[@id="impl-Foo-for-u32"]//h3[@class="code-header"]' 'impl Foo for u32'
10+ //@ has - '//*[@id="impl-Foo-for-u8"]//h3[@class="code-header"]' 'impl Foo for u8'
1011//@ has - "//*[@class=\"sidebar-elems\"]//section//a[@href=\"#impl-Foo-for-%26str\"]" "&'a str"
1112//@ has - "//*[@id=\"impl-Foo-for-%26str\"]//h3[@class=\"code-header\"]" "impl<'a> Foo for &'a str"
1213pub trait Foo { }
1314
1415impl Foo for u32 { }
16+ impl Foo for u8 { }
1517
1618impl < ' a > Foo for & ' a str { }
You can’t perform that action at this time.
0 commit comments