We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1be6b13 + 9352610 commit 4b106a7Copy full SHA for 4b106a7
tests/rustdoc-js/alias-sort.js
@@ -0,0 +1,10 @@
1
+// rank doc aliases lower than exact matches
2
+// regression test for <https://github.com/rust-lang/rust/issues/140968>
3
+
4
+const EXPECTED = {
5
+ 'query': 'foobazbar',
6
+ 'others': [
7
+ { 'name': 'foobazbar' },
8
+ { 'name': 'foo' },
9
+ ],
10
+};
tests/rustdoc-js/alias-sort.rs
@@ -0,0 +1,5 @@
+/// asdf
+pub fn foobazbar() {}
+#[doc(alias("foobazbar"))]
+pub fn foo() {}
0 commit comments