Rollup merge of #149325 - lolbinarycat:rustdoc-alias-sort-140968, r=GuillaumeGomez

rustdoc: add regression test for #140968

fixes rust-lang/rust#140968
This commit is contained in:
Stuart Cook 2025-11-27 12:36:55 +11:00 committed by GitHub
commit 8d6e349108
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,10 @@
// rank doc aliases lower than exact matches
// regression test for <https://github.com/rust-lang/rust/issues/140968>
const EXPECTED = {
'query': 'foobazbar',
'others': [
{ 'name': 'foobazbar' },
{ 'name': 'foo' },
],
};

View file

@ -0,0 +1,5 @@
/// asdf
pub fn foobazbar() {}
#[doc(alias("foobazbar"))]
pub fn foo() {}