about summary refs log tree commit diff
path: root/src/test/rustdoc-json
AgeCommit message (Collapse)AuthorLines
2022-08-09Update rustdoc-json testEric Holk-2/+2
2022-08-03Rustdoc-Json: Document HRTB's on DynTraitNixon Enraght-Moony-19/+35
Closes #99118
2022-07-30Rustdoc-Json: Add tests for dyn and HRTBsNixon Enraght-Moony-2/+40
2022-07-19rustdoc-json: Add tests for re-exports of primitivesMartin Nordholts-0/+6
2022-07-18Rustdoc-Json: Clean up testsNixon Enraght-Moony-8/+18
2022-07-16Add tests for JSON non-inliningGuillaume Gomez-24/+126
2022-06-29rustdoc-json: Make default value of blanket impl assoc types workMartin Nordholts-0/+9
2022-06-28Rollup merge of #98611 - GuillaumeGomez:rustdoc-json-glob-ice, r=notriddleMatthias Krüger-0/+24
Fix glob import ICE in rustdoc JSON format Fixes #98003. r? `@notriddle`
2022-06-28Add regression test for glob import ICE in rustdoc JSONGuillaume Gomez-0/+24
2022-06-28test/rustdoc-json/assoc_type.rs: Maximize chance of detecting future ICEsMartin Nordholts-0/+6
2022-06-28rustdoc-json: Add assoc type ICE regression testMartin Nordholts-0/+16
2022-06-27Add test for associated items in rustdoc JSONGuillaume Gomez-0/+29
2022-06-22Add test for keywords in rustdoc JSON outputGuillaume Gomez-0/+21
2022-06-18Rollup merge of #98195 - GuillaumeGomez:rustdoc-json-primitive, r=notriddleYuki Okushi-0/+17
Fix rustdoc json primitive handling Fixes https://github.com/rust-lang/rust/issues/98006. cc `@matthiaskrgr`
2022-06-17Add regression test for #98006Guillaume Gomez-0/+17
2022-06-16Add rustdonc-json regression test for #98009Guillaume Gomez-0/+38
2022-06-13Add regression test for #97986Guillaume Gomez-0/+24
2022-06-02Add regression test for json reexport bugGuillaume Gomez-0/+17
2022-05-04rustdoc-json: Add tests for all three HRTB fieldsMartin Nordholts-4/+42
2022-03-15rustdoc-json: Lifetime testsNixon Enraght-Moony-0/+56
2022-03-15rustdoc-json: Add tests for generic fn args and returnsNixon Enraght-Moony-0/+68
2022-03-15rustdoc-json: Add test for supertraitsNixon Enraght-Moony-0/+26
2022-03-14rustdoc-json-types: implementors -> implementationsNixon Enraght-Moony-0/+19
Closes #94198
2022-03-13rustdoc-json-types: ty -> type_Nixon Enraght-Moony-2/+4
Fixes #94889
2022-03-04rustdoc-json: Make the `fns/generics.rs` test much more robustNixon Enraght-Moony-4/+25
2022-03-04rustdoc-json: Include GenericParamDefKind::Type::synthetic in JSONMartin Nordholts-0/+5
The rustdoc JSON for ``` pub fn f(_: impl Clone) {} ``` will effectively be ``` pub fn f<impl Clone: Clone>(_: impl Clone) ``` where a synthetic generic parameter called `impl Clone` with generic trait bound `Clone` is added to the function declaration. The generated HTML filters out these generic parameters by doing `self.params.iter().filter(|p| !p.is_synthetic_type_param())`, because the synthetic generic parameter is not of interest to regular users. For the same reason, we should expose whether or not a generic parameter is synthetic or not also in the rustdoc JSON, so that rustdoc JSON clients can also have the option to hide synthetic generic parameters.
2022-03-03add testsMichael Goulet-0/+42
2022-02-18rustdoc-json: Add tests for fn qualifiers and ABINixon Enraght-Moony-78/+184
2022-02-09rustdoc-json: Add some tests for `typealias` itemNixon Enraght-Moony-0/+82
2022-01-22Add has tests for blanket_with_local trait methodsRune Tynan-0/+2
2022-01-21Update test to include `self` caseRune Tynan-0/+2
2022-01-20Rollup merge of #93094 - Enselic:check-for-enum-tuple-struct-fields, ↵Matthias Krüger-2/+4
r=CraftSpider src/test/rustdoc-json: Check for `struct_field`s in `variant_tuple_struct.rs` The presence of `struct_field`s is being checked for already in `variant_struct.rs`. We should also check for them in `variant_tuple_struct.rs`. This PR is one small step towards resolving #92945.
2022-01-19src/test/rustdoc-json: Check for `struct_field`s in `variant_tuple_struct.rs`Martin Nordholts-2/+4
The presence of `struct_field`s is being checked for already in `variant_struct.rs`. We should also check for them in `variant_tuple_struct.rs`.
2022-01-13Fix typo in testRune Tynan-1/+1
2022-01-13Fix errors on blanket impls by ignoring the children of their generated ↵Rune Tynan-0/+14
implementations
2021-11-24Create rustdoc_internals feature gateGuillaume Gomez-1/+1
2021-10-14Add regression test for #89852Loïc BRANSTETT-0/+17
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.