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.
1 parent 122cbd0 commit 9352610Copy full SHA for 9352610
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