From 226c77d0a4397d19542fd9e752fa75247befe9e0 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Mon, 15 Jan 2024 10:28:31 -0700 Subject: [PATCH] rustdoc: add re-export info to RawSearchIndex type def --- src/librustdoc/html/static/js/externs.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/librustdoc/html/static/js/externs.js b/src/librustdoc/html/static/js/externs.js index d24148b9556b..8cebce7ae861 100644 --- a/src/librustdoc/html/static/js/externs.js +++ b/src/librustdoc/html/static/js/externs.js @@ -239,20 +239,27 @@ let FunctionType; * `doc` contains the description of the crate. * * `p` is a list of path/type pairs. It is used for parents and function parameters. + * The first item is the type, the second is the name, the third is the visible path (if any) and + * the fourth is the canonical path used for deduplication (if any). + * + * `r` is the canonical path used for deduplication of re-exported items. + * It is not used for associated items like methods (that's the fourth element + * of `p`) but is used for modules items like free functions. * * `c` is an array of item indices that are deprecated. * @typedef {{ * doc: string, * a: Object, * n: Array, - * t: String, + * t: string, * d: Array, - * q: Array<[Number, string]>, - * i: Array, + * q: Array<[number, string]>, + * i: Array, * f: string, - * p: Array, - * b: Array<[Number, String]>, - * c: Array + * p: Array<[number, string] | [number, string, number] | [number, string, number, number]>, + * b: Array<[number, String]>, + * c: Array, + * r: Array<[number, number]>, * }} */ let RawSearchIndexCrate;