File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
src/test/rustdoc-json/primitives Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 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')]"
You can’t perform that action at this time.
0 commit comments