Skip to content

Commit f69fee4

Browse files
Add regression test for rust-lang#104064
1 parent 59eee74 commit f69fee4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)