File tree 4 files changed +11
-1
lines changed 4 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2368,6 +2368,12 @@ dependencies = [
2368
2368
name = " miropt-test-tools"
2369
2369
version = " 0.1.0"
2370
2370
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
+
2371
2377
[[package ]]
2372
2378
name = " new_debug_unreachable"
2373
2379
version = " 1.0.6"
@@ -4725,6 +4731,7 @@ dependencies = [
4725
4731
" indexmap" ,
4726
4732
" itertools" ,
4727
4733
" minifier" ,
4734
+ " natord" ,
4728
4735
" pulldown-cmark 0.9.6" ,
4729
4736
" regex" ,
4730
4737
" rinja" ,
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ tracing = "0.1"
25
25
tracing-tree = " 0.3.0"
26
26
threadpool = " 1.8.1"
27
27
unicode-segmentation = " 1.9"
28
+ natord = " 1.0.9"
28
29
29
30
[dependencies .tracing-subscriber ]
30
31
version = " 0.3.3"
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ fn sidebar_trait<'a>(
297
297
. filter_map ( |i| super :: extract_for_impl_name ( & i. impl_item , cx) )
298
298
. map ( |( name, id) | Link :: new ( id, name) ) ,
299
299
) ;
300
- foreign_impls. sort ( ) ;
300
+ foreign_impls. sort_by ( |a , b| natord :: compare ( & a . name , & b . name ) ) ;
301
301
}
302
302
303
303
blocks. extend (
Original file line number Diff line number Diff line change 7
7
//@ has - '//h2[@id="foreign-impls"]' 'Implementations on Foreign Types'
8
8
//@ has - '//*[@class="sidebar-elems"]//section//a[@href="#impl-Foo-for-u32"]' 'u32'
9
9
//@ 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'
10
11
//@ has - "//*[@class=\"sidebar-elems\"]//section//a[@href=\"#impl-Foo-for-%26str\"]" "&'a str"
11
12
//@ has - "//*[@id=\"impl-Foo-for-%26str\"]//h3[@class=\"code-header\"]" "impl<'a> Foo for &'a str"
12
13
pub trait Foo { }
13
14
14
15
impl Foo for u32 { }
16
+ impl Foo for u8 { }
15
17
16
18
impl < ' a > Foo for & ' a str { }
You can’t perform that action at this time.
0 commit comments