diff options
| author | Rune Tynan <runetynan@gmail.com> | 2021-01-15 20:34:15 -0500 |
|---|---|---|
| committer | Rune Tynan <runetynan@gmail.com> | 2021-01-19 14:24:25 -0500 |
| commit | 7715656edd201b8c6bbddf0040f424c27e4db4df (patch) | |
| tree | a3c2f7b0835fd4f3728d85755df926566ee29f36 /src/test/rustdoc-json/nested.rs | |
| parent | f09fb488f70c5965ec4f64453a6e681fbfcff56c (diff) | |
| download | rust-7715656edd201b8c6bbddf0040f424c27e4db4df.tar.gz rust-7715656edd201b8c6bbddf0040f424c27e4db4df.zip | |
Add jsondocck tool, and use it for rustdoc JSON
Diffstat (limited to 'src/test/rustdoc-json/nested.rs')
| -rw-r--r-- | src/test/rustdoc-json/nested.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/rustdoc-json/nested.rs b/src/test/rustdoc-json/nested.rs index e460b343d37..2f32f4ef76d 100644 --- a/src/test/rustdoc-json/nested.rs +++ b/src/test/rustdoc-json/nested.rs @@ -1,7 +1,25 @@ // edition:2018 + +// @has nested.json "$.index.['0:0'].kind" \"module\" +// @has - "$.index.['0:0'].inner.is_crate" true +// @has - "$.index.['0:0'].inner.items[*]" \"0:3\" + +// @has nested.json "$.index.['0:3'].kind" \"module\" +// @has - "$.index.['0:3'].inner.is_crate" false +// @has - "$.index.['0:3'].inner.items[*]" \"0:4\" +// @has - "$.index.['0:3'].inner.items[*]" \"0:7\" pub mod l1 { + + // @has nested.json "$.index.['0:4'].kind" \"module\" + // @has - "$.index.['0:4'].inner.is_crate" false + // @has - "$.index.['0:4'].inner.items[*]" \"0:5\" pub mod l3 { + + // @has nested.json "$.index.['0:5'].kind" \"struct\" + // @has - "$.index.['0:5'].inner.struct_type" \"unit\" pub struct L4; } + // @has nested.json "$.index.['0:7'].kind" \"import\" + // @has - "$.index.['0:7'].inner.glob" false pub use l3::L4; } |
