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 ed042d0 commit 9be1788Copy full SHA for 9be1788
tests/rustdoc-js/unstable.js
@@ -0,0 +1,13 @@
1
+// exact-check
2
+
3
+// This test ensures that unstable items are sorted last.
4
5
+const EXPECTED = [
6
+ {
7
+ 'query': 'bar',
8
+ 'others': [
9
+ { 'path': 'unstable', 'name': 'bar2' },
10
+ { 'path': 'unstable', 'name': 'bar1' },
11
+ ],
12
+ },
13
+];
tests/rustdoc-js/unstable.rs
@@ -0,0 +1,8 @@
+#![feature(staged_api)]
+#![stable(feature = "another", since = "1.0.0")]
+#[unstable(feature = "tadam", issue = "none")]
+pub fn bar1() {}
+#[stable(feature = "another", since = "1.0.0")]
+pub fn bar2() {}
0 commit comments