-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #117521 - GuillaumeGomez:impl-on-foreign-order, r=notri…
…ddle Fix order of implementations in the "implementations on foreign types" section Fixes #117391. We forgot to run the `sort_by_cached_key` on this section. This fixes it. r? `@notriddle`
- Loading branch information
Showing
4 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// This test ensures that the "implementations on foreign types" of a trait are correctly sorted. | ||
go-to: "file://" + |DOC_PATH| + "/test_docs/foreign_impl_order/trait.Foo.html" | ||
assert-text: ("details:nth-of-type(1) h3", "impl Foo<1> for [u8; 1]") | ||
assert-text: ("details:nth-of-type(2) h3", "impl Foo<2> for [u8; 2]") | ||
assert-text: ("details:nth-of-type(3) h3", "impl Foo<3> for [u8; 3]") | ||
assert-text: ("details:nth-of-type(4) h3", "impl Foo<4> for [u8; 4]") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters