about summary refs log tree commit diff
path: root/src/test/rustdoc-json/fns
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-229/+0
2022-11-30Rollup merge of #103065 - aDotInTheVoid:rdj-arg-pattern, r=GuillaumeGomezMatthias Krüger-0/+7
rustdoc-json: Document and Test that args can be patterns.
2022-11-25jsondoclint: Recognise Typedef as valid kind for Type::ResolvedPathNixon Enraght-Moony-0/+10
Closes #104851
2022-10-14rustdoc-json: Document and Test that args can be patterns.Nixon Enraght-Moony-0/+7
2022-09-10Rustdoc-Json Tests: Use `@is` and `@ismany` more often.Nixon Enraght-Moony-4/+4
2022-08-30rustdoc: Resugar async fn return type in `clean`, not `html`Nixon Enraght-Moony-0/+36
This way it also happens for json output. Fixes #101199
2022-08-18Update rustdoc-json test filesGuillaume Gomez-95/+95
2022-08-10Rustdoc-Json: Add `Path` type for traits.Nixon Enraght-Moony-10/+10
Closes #100106
2022-05-04rustdoc-json: Add tests for all three HRTB fieldsMartin Nordholts-4/+28
2022-03-15rustdoc-json: Add tests for generic fn args and returnsNixon Enraght-Moony-0/+68
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-02-18rustdoc-json: Add tests for fn qualifiers and ABINixon Enraght-Moony-22/+58
2021-02-08Add comment + move derive helperRune Tynan-0/+2
2021-02-08Make `header` a vec of modifiers, make FunctionPointer consistent with ↵Rune Tynan-0/+20
Function and Method.