File tree 3 files changed +14
-2
lines changed
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change
1
+ // issue #56018: "Implementations on Foreign Types" sidebar items should be sorted by name
2
+ #![ crate_name = "foo" ]
3
+ #![ no_std]
4
+
5
+ pub trait Foo { }
6
+
7
+ //@ has 'foo/trait.Foo.html'
8
+ //@ snapshot sidebar - '//*[@class="sidebar-elems"]'
9
+ impl Foo for u32 { }
10
+ impl Foo for u8 { }
11
+ impl Foo for u16 { }
12
+
13
+ impl < ' a > Foo for & ' a str { }
Original file line number Diff line number Diff line change
1
+ < div class ="sidebar-elems "> < section id ="rustdoc-toc "> < h2 class ="location "> < a href ="# "> Foo</ a > </ h2 > < h3 > < a href ="#foreign-impls "> Implementations on Foreign Types</ a > </ h3 > < ul class ="block "> < li > < a href ="#impl-Foo-for-%26str " title ="&'a str "> &'a str</ a > </ li > < li > < a href ="#impl-Foo-for-u8 " title ="u8 "> u8</ a > </ li > < li > < a href ="#impl-Foo-for-u16 " title ="u16 "> u16</ a > </ li > < li > < a href ="#impl-Foo-for-u32 " title ="u32 "> u32</ a > </ li > </ ul > < h3 > < a href ="#implementors "> Implementors</ a > </ h3 > </ section > < div id ="rustdoc-modnav "> < h2 class ="in-crate "> < a href ="index.html "> In crate foo</ a > </ h2 > </ div > </ div >
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'
11
10
//@ has - "//*[@class=\"sidebar-elems\"]//section//a[@href=\"#impl-Foo-for-%26str\"]" "&'a str"
12
11
//@ has - "//*[@id=\"impl-Foo-for-%26str\"]//h3[@class=\"code-header\"]" "impl<'a> Foo for &'a str"
13
12
pub trait Foo { }
14
13
15
14
impl Foo for u32 { }
16
- impl Foo for u8 { }
17
15
18
16
impl < ' a > Foo for & ' a str { }
You can’t perform that action at this time.
0 commit comments