We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59eee74 commit f69fee4Copy full SHA for f69fee4
src/test/rustdoc-json/primitives/local_primitive.rs
@@ -0,0 +1,21 @@
1
+// Regression test for <https://github.com/rust-lang/rust/issues/104064>.
2
+
3
+#![feature(no_core)]
4
+#![feature(rustc_attrs)]
5
+#![feature(rustdoc_internals)]
6
+#![no_core]
7
+#![rustc_coherence_is_core]
8
9
+//! Link to [i32][prim@i32] [i64][prim@i64]
10
11
+#[doc(primitive = "i32")]
12
+mod prim_i32 {}
13
14
+// @set local_i32 = "$.index[*][?(@.name=='i32')].id"
15
16
+// @has "$.index[*][?(@.name=='local_primitive')]"
17
+// @ismany "$.index[*][?(@.name=='local_primitive')].inner.items[*]" $local_i32
18
+// @is "$.index[*][?(@.name=='local_primitive')].links['prim@i32']" $local_i32
19
20
+// Let's ensure the `prim_i32` module isn't present in the output JSON:
21
+// @!has "$.index[*][?(@.name=='prim_i32')]"
0 commit comments