From 699ae365dfadabb3d26f957341a9f176d73bc8af Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sun, 20 Mar 2022 15:03:17 +0100 Subject: Apply suggestions: * Forbid generics without a path (so "

" is forbidden). * Change `handleSingleArg` so that it takes `results_others`, `results_in_args` and `results_returned` as arguments instead of using the "global" variables. * Change `createQueryElement` so that it returns the newly created element instead of taking `elems` as argument. * Improve documentation --- src/test/rustdoc-js-std/parser-generics.js | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'src/test/rustdoc-js-std/parser-generics.js') diff --git a/src/test/rustdoc-js-std/parser-generics.js b/src/test/rustdoc-js-std/parser-generics.js index cf8d99ef22a..cc92f2333d2 100644 --- a/src/test/rustdoc-js-std/parser-generics.js +++ b/src/test/rustdoc-js-std/parser-generics.js @@ -1,29 +1,6 @@ -const QUERY = ['

', 'A, E>', 'p<> u8']; +const QUERY = ['A, E>', 'p<> u8']; const PARSED = [ - { - elems: [{ - name: "", - fullPath: [""], - pathWithoutLast: [], - pathLast: "", - generics: [ - { - name: "p", - fullPath: ["p"], - pathWithoutLast: [], - pathLast: "p", - generics: [], - }, - ], - }], - foundElems: 1, - original: "

", - returned: [], - typeFilter: -1, - userQuery: "

", - error: null, - }, { elems: [], foundElems: 0, -- cgit 1.4.1-3-g733a5