about summary refs log tree commit diff
path: root/src/test/rustdoc-json
AgeCommit message (Collapse)AuthorLines
2021-10-08Remove special-casing of never primitive in rustdoc-json-typesLoïc BRANSTETT-0/+22
2021-10-04Rollup merge of #88234 - hkmatsumoto:rustdoc-impls-for-primitive, r=jyn514Manish Goregaokar-0/+14
rustdoc-json: Don't ignore impls for primitive types Fix the issue discussed at [Zulip](https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/.E2.9C.94.20Json.20output.20lacks.20some.20item.20which.20are.20supposed.20to.20be.20there) r? ``@jyn514``
2021-09-29Don't ignore impls for primitive typesHirochika Matsumoto-0/+14
2021-09-26Fix populate of union.implsLoïc BRANSTETT-0/+15
2021-09-02rustdoc: Clean up handling of lifetime boundsNoah Lev-1/+1
Previously, rustdoc recorded lifetime bounds by rendering them into the name of the lifetime parameter. Now, it leaves the name as the actual name and instead records lifetime bounds in an `outlives` list, similar to how type parameter bounds are recorded.
2021-08-29Add rustdonc-json tests for enum variantsGuillaume Gomez-0/+17
2021-03-24Rename `span` to `source`Nixon Enraght-Moony-4/+4
Caused by https://github.com/rust-lang/rust/commit/b0659f9b1bfb92626c40dabceb3268f88bb26224#diff-ede26372490522288745c5b3df2b6b2a1cc913dcd09b29af3a49935afe00c7e6L464-R464
2021-03-24Don't call `item` on modules for json rendererNixon Enraght-Moony-0/+49
Closes #80664
2021-03-21Update testsCamelid-2/+2
These tests were added to master after I made my changes.
2021-03-21rustdoc-json: Rename `Import.span` to `Import.source`Camelid-2/+2
* It is called `source` in rustc and the rest of rustdoc * It is not a span, rather it is the source of the import
2021-03-12Rollup merge of #82571 - aDotInTheVoid:reexport-tests, r=CraftSpiderYuki Okushi-0/+92
Rustdoc Json: Add tests for Reexports, and improve jsondocck The two changes are orthognal, so you can land just one if you want, but the improved errors realy helped write the tests. Notably does not have the case from #80664, but I want to have all the ajacent cases tested before starting work on that to ensure I dont break anything. Improves #81359 cc ```@CraftSpider``` r? ```@jyn514``` ```@rustbot``` modify labels: +A-testsuite +T-rustdoc +A-rustdoc-json
2021-03-10Add reexport testsNixon Enraght-Moony-0/+92
2021-03-01Remove `krate.version`; fix `crate_version` in JSONJoshua Nelson-1/+3
Previously, `JsonRenderer::after_krate` called `krate.version.clone()`. The problem was it did that after the version was already moved into the cache, so it would always be None. The fix was to get the version from the cache instead.
2021-02-20Implement using @set valuesNixon Enraght-Moony-1/+2
2021-02-20Implement @setNixon Enraght-Moony-0/+3
2021-02-20Add @is command to jsondocckNixon Enraght-Moony-10/+10
2021-02-08Add comment + move derive helperRune Tynan-0/+4
2021-02-08Make `header` a vec of modifiers, make FunctionPointer consistent with ↵Rune Tynan-0/+49
Function and Method.
2021-02-05Add abi field to `Method`Rune Tynan-0/+25
2021-02-05Rollup merge of #81500 - CraftSpider:union-kind, r=jyn514Mara Bos-0/+7
Remove struct_type from union output Also bumps the format number and adds a test Rationale: It's illegal to have unions of the form `union Union(i32, f32);`, or `union Union;`. The struct_type field was recently removed from the rustdoc Union AST, at which time this field was changed to always just read "union". It makes sense to completely remove it, as it provides no information.
2021-01-28Remove struct_type from union output and bump formatRune Tynan-0/+7
2021-01-28Remove leading newlineRune Tynan-1/+0
2021-01-28Fix has_body for trait methodsRune Tynan-0/+22
2021-01-19Address review v2Rune Tynan-46/+40
2021-01-19Add jsondocck tool, and use it for rustdoc JSONRune Tynan-988/+63
2021-01-15Add warning to compare.py about error messagesRune Tynan-0/+3
2021-01-15Fix JSON testRune Tynan-2/+2
2020-12-05Use true ID for def_id.Nixon Enraght-Moony-0/+203
2020-12-02Normalize windows path seperators.Nixon Enraght-Moony-3/+6
2020-12-01Address review comments.Nixon Enraght-Moony-46/+23
Go back to CRATE_DEF_INDEX Minor niceness improvements Don't output hidden items Remove striped items from fields Add $TEST_BASE_DIR Small catch
2020-12-01Add tests for rustdoc jsonNixon Enraght-Moony-0/+809
Move rustdoc/rustdoc-json to rustdoc-json Scaffold rustdoc-json test mode Implement run_rustdoc_json_test Fix up python Make tidy happy